luci-app-statistics: cpufreq: tweak graphs
* Frequency usage percentage stats are by kHz instead of Hz.
Correct the labels. (Linux natively uses kHz for CPU frequency stats,
but collectd scales the current frequency stats item to Hz.)
* Show frequency usage percentage graph before the transition counts,
as it is more descriptive.
Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
(cherry picked from commit 24c0e7ca4c
)
This commit is contained in:
parent
91774669cb
commit
f92bca04eb
1 changed files with 2 additions and 2 deletions
|
@ -48,12 +48,12 @@ function rrdargs( graph, plugin, plugin_instance, dtype )
|
|||
data = {
|
||||
types = { "percent" },
|
||||
options = {
|
||||
percent = { title = "%di Hz", negweight = true },
|
||||
percent = { title = "%di kHz", negweight = true },
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return { cpufreq, transitions, percentage }
|
||||
return { cpufreq, percentage, transitions }
|
||||
else
|
||||
return { cpufreq }
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue