smooth the disk light a bit
This commit is contained in:
parent
3c8051a84e
commit
e20e2d335f
@ -35,7 +35,8 @@
|
|||||||
:wait-for { :interval (* 1 500) }
|
:wait-for { :interval (* 1 500) }
|
||||||
:refresh
|
:refresh
|
||||||
#(let [current (. (metric.cpustat) :iowait)
|
#(let [current (. (metric.cpustat) :iowait)
|
||||||
v (if (< previous current) "" " ")]
|
delta (- current previous)
|
||||||
|
v (if (> delta 4) "" " ")]
|
||||||
(set previous current)
|
(set previous current)
|
||||||
{:text v})
|
{:text v})
|
||||||
}))
|
}))
|
||||||
|
Loading…
Reference in New Issue
Block a user