From 0299c15dc0869a12ceec947e6e51088bb88da56d Mon Sep 17 00:00:00 2001 From: "Adrian C. (anrxc)" Date: Mon, 15 Mar 2010 17:55:25 +0100 Subject: widgets: minor cleanup before a tag in cpuinf, fs, mbox... --- widgets/uptime.lua | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'widgets/uptime.lua') 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} -- cgit v1.2.3