statistics: memory plugin - improve graph by better scaling of y-axis
Utilise alt_autoscale_max to make the memory chart y-axis to scale better for devices with e.g. 128 MB RAM. Also fix the axis min value to 0. Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
This commit is contained in:
parent
86ff4bd3a4
commit
9a06498dbd
1 changed files with 2 additions and 0 deletions
|
@ -17,6 +17,8 @@ function rrdargs( graph, plugin, plugin_instance, dtype )
|
||||||
title = "%H: Memory usage",
|
title = "%H: Memory usage",
|
||||||
vlabel = "MB",
|
vlabel = "MB",
|
||||||
number_format = "%5.1lf%s",
|
number_format = "%5.1lf%s",
|
||||||
|
y_min = "0",
|
||||||
|
alt_autoscale_max = true,
|
||||||
data = {
|
data = {
|
||||||
instances = {
|
instances = {
|
||||||
memory = { "free", "buffered", "cached", "used" }
|
memory = { "free", "buffered", "cached", "used" }
|
||||||
|
|
Loading…
Reference in a new issue