reformat
This commit is contained in:
parent
70790737e5
commit
70a82b7fd4
|
@ -45,8 +45,10 @@ end
|
|||
|
||||
watch('bash -c "free | grep -z Mem.*Swap.*"', 1,
|
||||
function(widget, stdout, stderr, exitreason, exitcode)
|
||||
total, used, free, shared, buff_cache, available, total_swap, used_swap, free_swap = stdout:match('(%d+)%s*(%d+)%s*(%d+)%s*(%d+)%s*(%d+)%s*(%d+)%s*Swap:%s*(%d+)%s*(%d+)%s*(%d+)')
|
||||
widget.data = { used, total-used }
|
||||
total, used, free, shared, buff_cache, available, total_swap, used_swap, free_swap =
|
||||
stdout:match('(%d+)%s*(%d+)%s*(%d+)%s*(%d+)%s*(%d+)%s*(%d+)%s*Swap:%s*(%d+)%s*(%d+)%s*(%d+)')
|
||||
|
||||
widget.data = { used, total-used } widget.data = { used, total-used }
|
||||
|
||||
if w.visible then
|
||||
w.pie.data_list = {
|
||||
|
|
Loading…
Reference in New Issue