smooth the disk light a bit

phoen
Daniel Barlow 2022-04-01 16:19:16 +01:00
parent 3c8051a84e
commit e20e2d335f
1 changed files with 2 additions and 1 deletions

View File

@ -35,7 +35,8 @@
:wait-for { :interval (* 1 500) }
:refresh
#(let [current (. (metric.cpustat) :iowait)
v (if (< previous current) "" " ")]
delta (- current previous)
v (if (> delta 4) "" " ")]
(set previous current)
{:text v})
}))