fix: wrong cpu usage

This commit is contained in:
ryan4yin
2023-06-03 18:35:19 +08:00
parent b3b2136579
commit ef16db0bcd

View File

@@ -81,7 +81,7 @@ border_left=0
[cpu_usage]
command=(mpstat | grep all | awk '{ printf "%04.1f<span color=\"#ff5555\">%</span>", (100 - $12) }') && (sensors | grep 'Package id 0:\|Tdie' | grep ':[ ]*+[0-9]*.[0-9]*°C' -o | grep '+[0-9]*.[0-9]*°C' -o)
command=(mpstat 1 1 | grep Average | awk '{ printf "%04.1f<span color=\"#ff5555\">%</span>", (100 - $12) }') && (sensors | grep 'Package id 0:\|Tdie' | grep ':[ ]*+[0-9]*.[0-9]*°C' -o | grep '+[0-9]*.[0-9]*°C' -o)
interval=2
label=<span color="#ff5555"><b>CPU: </b></span>
border=#ff5555