diff options
author | Florian Eckert <fe@dev.tdt.de> | 2019-09-13 12:51:13 +0200 |
---|---|---|
committer | Florian Eckert <fe@dev.tdt.de> | 2019-09-13 12:59:04 +0200 |
commit | d064cbcf982cde30c4827207af74721c425b9bb0 (patch) | |
tree | c7a863d796e5d3335a3ad6c5dd41c0b6d3086fcb /applications/luci-app-statistics/luasrc/model/cbi/luci_statistics | |
parent | 2be8aefe7f7a7e368d82d332b1aeb5494aefa9b5 (diff) |
luci-app-statistics: add new memory plugin option
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
Diffstat (limited to 'applications/luci-app-statistics/luasrc/model/cbi/luci_statistics')
-rw-r--r-- | applications/luci-app-statistics/luasrc/model/cbi/luci_statistics/memory.lua | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/applications/luci-app-statistics/luasrc/model/cbi/luci_statistics/memory.lua b/applications/luci-app-statistics/luasrc/model/cbi/luci_statistics/memory.lua index fa677b8d12..e5f3360c05 100644 --- a/applications/luci-app-statistics/luasrc/model/cbi/luci_statistics/memory.lua +++ b/applications/luci-app-statistics/luasrc/model/cbi/luci_statistics/memory.lua @@ -10,4 +10,18 @@ s = m:section( NamedSection, "collectd_memory", "luci_statistics" ) enable = s:option( Flag, "enable", translate("Enable this plugin") ) enable.default = 0 +-- collectd_memory.valuesabsolute (ValuesAbsolute) +valuespercentage = s:option( Flag, "ValuesAbsolute", + translate("Absolute values"), + translate("When set to true, we request absolute values")) +valuespercentage.default = 1 +valuespercentage:depends( "enable", 1 ) + +-- collectd_memory.valuespercentage (ValuesPercentage) +valuespercentage = s:option( Flag, "ValuesPercentage", + translate("Percent values"), + translate("When set to true, we request percentage values")) +valuespercentage.default = 0 +valuespercentage:depends( "enable", 1 ) + return m |