X-Git-Url: https://git.madduck.net/etc/awesome.git/blobdiff_plain/4bde4b5eea6ad1352078228c0d146f41b4c893e4..4c7c9454a36a9dfd5338384f0ca9691790f01c6a:/widgets/cpu.lua?ds=sidebyside

diff --git a/widgets/cpu.lua b/widgets/cpu.lua
index 55a3799..0b21edc 100644
--- a/widgets/cpu.lua
+++ b/widgets/cpu.lua
@@ -58,7 +58,8 @@ local function worker(args)
         local dactive = active - cpu.last_active
         local dtotal = total - cpu.last_total
 
-        usage = tostring(math.ceil((dactive / dtotal) * 100))
+        cpu_now = {}
+        cpu_now.usage = tostring(math.ceil((dactive / dtotal) * 100))
 
         widget = cpu.widget
         settings()