diff options
author | Hannu Nyman <hannu.nyman@iki.fi> | 2015-08-23 21:12:56 +0300 |
---|---|---|
committer | Hannu Nyman <hannu.nyman@iki.fi> | 2015-08-23 21:12:56 +0300 |
commit | 9a06498dbdf5f5878d2ce86a4b9ac8abc9173bdc (patch) | |
tree | c7c57342261924ef306a40368b73b4eabea86814 /applications/luci-app-statistics/luasrc/statistics/rrdtool | |
parent | 86ff4bd3a4a39674c51bd52576a0a87e803a7c53 (diff) |
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>
Diffstat (limited to 'applications/luci-app-statistics/luasrc/statistics/rrdtool')
-rw-r--r-- | applications/luci-app-statistics/luasrc/statistics/rrdtool/definitions/memory.lua | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/applications/luci-app-statistics/luasrc/statistics/rrdtool/definitions/memory.lua b/applications/luci-app-statistics/luasrc/statistics/rrdtool/definitions/memory.lua index a1c65f56d7..53d559c599 100644 --- a/applications/luci-app-statistics/luasrc/statistics/rrdtool/definitions/memory.lua +++ b/applications/luci-app-statistics/luasrc/statistics/rrdtool/definitions/memory.lua @@ -17,6 +17,8 @@ function rrdargs( graph, plugin, plugin_instance, dtype ) title = "%H: Memory usage", vlabel = "MB", number_format = "%5.1lf%s", + y_min = "0", + alt_autoscale_max = true, data = { instances = { memory = { "free", "buffered", "cached", "used" } |