diff options
author | Hannu Nyman <hannu.nyman@iki.fi> | 2020-12-13 11:47:35 +0200 |
---|---|---|
committer | Hannu Nyman <hannu.nyman@iki.fi> | 2020-12-13 11:50:54 +0200 |
commit | 1da78c0d039ef6be530521cdf7586f97d97dfd0f (patch) | |
tree | 3a2e400f61c27613e754d37e99a3add17bea1c9a /applications/luci-app-statistics/htdocs/luci-static/resources | |
parent | f7e5b56649c8b7599e27db09652e9cb3083d2108 (diff) |
luci-app-statistics: Add help text to RRD time spans
Add clarifying help text to the RRD time span definition.
Only a few strings are allowed and it is easy to cause uninteded
results especially with minutes as only "min" is for minute while
("m" or "month") are for month.
Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
Diffstat (limited to 'applications/luci-app-statistics/htdocs/luci-static/resources')
-rw-r--r-- | applications/luci-app-statistics/htdocs/luci-static/resources/view/statistics/plugins/rrdtool.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/applications/luci-app-statistics/htdocs/luci-static/resources/view/statistics/plugins/rrdtool.js b/applications/luci-app-statistics/htdocs/luci-static/resources/view/statistics/plugins/rrdtool.js index d25c0f8139..c1eb171ee7 100644 --- a/applications/luci-app-statistics/htdocs/luci-static/resources/view/statistics/plugins/rrdtool.js +++ b/applications/luci-app-statistics/htdocs/luci-static/resources/view/statistics/plugins/rrdtool.js @@ -35,7 +35,8 @@ return baseclass.extend({ _('Max values for a period can be used instead of averages when not using \'only average RRAs\'')); o.depends('RRASingle', '0'); - o = s.option(form.DynamicList, 'RRATimespans', _('Stored timespans')); + o = s.option(form.DynamicList, 'RRATimespans', _('Stored timespans'), + _('List of time spans to be stored in RRD database. E.g. "1hour 1day 14day". Allowed timespan types: min, h, hour(s), d, day(s), w, week(s), m, month(s), y, year(s)')); o.default = '1hour 1day 1week 1month 1year'; o.depends('enable', '1'); o.validate = function(section_id, value) { |