From ebd506d6932972388b4cb92ba7599667d52fc2a7 Mon Sep 17 00:00:00 2001 From: Roman Saldygashev Date: Mon, 25 Jul 2016 16:30:27 +0500 Subject: [PATCH 1/1] add used memory percentage --- widgets/mem.lua | 1 + 1 file changed, 1 insertion(+) 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() -- 2.39.5