Merge pull request #216 from groundflyer/memwidget

memory widget: add percentage
This commit is contained in:
Luke Bonham 2016-07-27 11:30:24 +02:00 committed by GitHub
commit 8dc0df106d
1 changed files with 1 additions and 0 deletions

View File

@ -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()