aboutsummaryrefslogtreecommitdiff
path: root/widgets/uptime.lua
diff options
context:
space:
mode:
authorAdrian C. (anrxc) <anrxc@sysphere.org>2010-03-15 17:55:25 +0100
committerAdrian C. (anrxc) <anrxc@sysphere.org>2010-03-15 17:55:25 +0100
commit0299c15dc0869a12ceec947e6e51088bb88da56d (patch)
treee1989cb5e9fe5ea1e0edaed0754265a4056690c4 /widgets/uptime.lua
parent4fc6dffe94d01a4696bf1f7420b79b05ecf5d35c (diff)
downloadvicious-legacy-0299c15dc0869a12ceec947e6e51088bb88da56d.tar.xz
widgets: minor cleanup before a tag in cpuinf, fs, mbox...
Diffstat (limited to 'widgets/uptime.lua')
-rw-r--r--widgets/uptime.lua3
1 files changed, 1 insertions, 2 deletions
diff --git a/widgets/uptime.lua b/widgets/uptime.lua
index ebc5af8..e0bdc3b 100644
--- a/widgets/uptime.lua
+++ b/widgets/uptime.lua
@@ -26,8 +26,7 @@ local function worker(format)
local up_h = math.floor((up_t % (3600 * 24)) / 3600)
local up_m = math.floor(((up_t % (3600 * 24)) % 3600) / 60)
- -- Get load averages
- local l1, l5, l15 = -- Get load averages for past 1, 5 and 15 minutes
+ local l1, l5, l15 = -- Get load averages for past 1, 5 and 15 minutes
string.match(proc.loadavg, "([%d]*%.[%d]*)%s([%d]*%.[%d]*)%s([%d]*%.[%d]*)")
return {up_d, up_h, up_m, l1, l5, l15}