diff options
author | Adrian C. (anrxc) <anrxc@sysphere.org> | 2011-06-30 01:02:43 +0200 |
---|---|---|
committer | Adrian C. (anrxc) <anrxc@sysphere.org> | 2011-06-30 01:02:43 +0200 |
commit | 1384b69384726a3ef48de8bd561ce969371b4ee9 (patch) | |
tree | 602ca2e16b9cbe829d0e57366e4472e6c7ec9eb4 /widgets | |
parent | 324563e51bdb1f79ee7ed62fb44482a1faa9a933 (diff) | |
download | vicious-legacy-1384b69384726a3ef48de8bd561ce969371b4ee9.tar.xz |
mem: provide mem.bcuse for Gabriel
Diffstat (limited to 'widgets')
-rw-r--r-- | widgets/mem.lua | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/widgets/mem.lua b/widgets/mem.lua index c2f5886..dfa06e1 100644 --- a/widgets/mem.lua +++ b/widgets/mem.lua @@ -36,13 +36,15 @@ local function worker(format) -- Calculate memory percentage mem.free = mem.buf.f + mem.buf.b + mem.buf.c mem.inuse = mem.total - mem.free + mem.bcuse = mem.total - mem.buf.f mem.usep = math.floor(mem.inuse / mem.total * 100) -- Calculate swap percentage mem.swp.inuse = mem.swp.t - mem.swp.f mem.swp.usep = math.floor(mem.swp.inuse / mem.swp.t * 100) return {mem.usep, mem.inuse, mem.total, mem.free, - mem.swp.usep, mem.swp.inuse, mem.swp.t, mem.swp.f} + mem.swp.usep, mem.swp.inuse, mem.swp.t, mem.swp.f, + mem.bcuse } end -- }}} |