From: Luke Bonham Date: Wed, 27 Jul 2016 09:30:24 +0000 (+0200) Subject: Merge pull request #216 from groundflyer/memwidget X-Git-Url: https://git.madduck.net/etc/awesome.git/commitdiff_plain/8dc0df106dc5a1c254a0371254770d7c869ab7fa?hp=1744c45790eefcd0ac572b42158becfd47175466 Merge pull request #216 from groundflyer/memwidget memory widget: add percentage --- diff --git a/widgets/mem.lua b/widgets/mem.lua index f6213b2..3a6bdec 100644 --- a/widgets/mem.lua +++ b/widgets/mem.lua @@ -46,6 +46,7 @@ local function worker(args) mem_now.used = mem_now.total - (mem_now.free + mem_now.buf + mem_now.cache) mem_now.swapused = mem_now.swap - mem_now.swapf + mem_now.perc = math.floor(mem_now.used / mem_now.total * 100) widget = mem.widget settings()