diff options
author | Adrian C. (anrxc) <anrxc@sysphere.org> | 2010-04-07 02:24:01 +0200 |
---|---|---|
committer | Adrian C. (anrxc) <anrxc@sysphere.org> | 2010-04-07 02:24:01 +0200 |
commit | 64e5426985f7d0584c7855159c19eca7e431a67a (patch) | |
tree | 4f117669bc4c4679900f6a8cdd584adc179861ad | |
parent | 448275a3865d1db82a6fc37d60548da8b865e5e0 (diff) | |
download | vicious-legacy-64e5426985f7d0584c7855159c19eca7e431a67a.tar.xz |
uptime: simplified system load regexp
-rw-r--r-- | widgets/uptime.lua | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/widgets/uptime.lua b/widgets/uptime.lua index e0bdc3b..ece3739 100644 --- a/widgets/uptime.lua +++ b/widgets/uptime.lua @@ -27,8 +27,7 @@ local function worker(format) local up_m = math.floor(((up_t % (3600 * 24)) % 3600) / 60) 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]*)") - + string.match(proc.loadavg, "([%d%.]+)[%s]([%d%.]+)[%s]([%d%.]+)") return {up_d, up_h, up_m, l1, l5, l15} end -- }}} |