mirror of
https://github.com/munin-monitoring/contrib.git
synced 2018-11-08 00:59:34 +01:00
p/cpu_freq_1sec: fix the unit & the DS type
This commit is contained in:
parent
61fe1573cb
commit
48d3de6056
1 changed files with 2 additions and 2 deletions
|
@ -23,7 +23,7 @@ then
|
||||||
cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq
|
cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq
|
||||||
)
|
)
|
||||||
done | awk "{
|
done | awk "{
|
||||||
print \"scaling_cur_freq.value \" \$1 \":\" \$2;
|
print \"scaling_cur_freq.value \" \$1 \":\" (\$2 * 1000);
|
||||||
system(\"\");
|
system(\"\");
|
||||||
}" >> $cache
|
}" >> $cache
|
||||||
) &
|
) &
|
||||||
|
@ -41,7 +41,7 @@ graph_data_size custom 1d, 10s for 1w, 1m for 1t, 5m for 1y
|
||||||
graph_vlabel Hz
|
graph_vlabel Hz
|
||||||
update_rate 1
|
update_rate 1
|
||||||
scaling_cur_freq.label Current CPU Scaling Frequence
|
scaling_cur_freq.label Current CPU Scaling Frequence
|
||||||
scaling_cur_freq.type DERIVE
|
scaling_cur_freq.type GAUGE
|
||||||
EOF
|
EOF
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue