From: Luke Bonham Date: Tue, 29 Apr 2014 10:53:42 +0000 (+0200) Subject: Merge pull request #46 from ztombol/fix-cpuwidget X-Git-Url: https://git.madduck.net/etc/awesome.git/commitdiff_plain/de67546f6eee871026c67620997a392037dc4d7a?hp=1e340f19a3b01eaa421f376801adb30aefce5c9f Merge pull request #46 from ztombol/fix-cpuwidget fix cpu load calculation --- diff --git a/widgets/cpu.lua b/widgets/cpu.lua index 0b21edc..7c1ecb0 100644 --- a/widgets/cpu.lua +++ b/widgets/cpu.lua @@ -43,9 +43,9 @@ local function worker(args) local total = 0 for field in string.gmatch(times, "[%s]+([^%s]+)") do - -- 3 = idle, 4 = ioWait. Essentially, the CPUs have done + -- 4 = idle, 5 = ioWait. Essentially, the CPUs have done -- nothing during these times. - if at == 3 or at == 4 + if at == 4 or at == 5 then idle = idle + field end