Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function conky_format(format, number)
- return string.format(format, conky_parse(number))
- end
- function conky_average(...)
- local sum = 0
- local count = 0
- for _, v in ipairs({...}) do
- sum = sum + conky_parse(v)
- count = count + 1
- end
- return (sum / count)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement