From: Hannu Nyman Date: Sun, 13 Dec 2020 09:47:35 +0000 (+0200) Subject: luci-app-statistics: Add help text to RRD time spans X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=1da78c0d039ef6be530521cdf7586f97d97dfd0f;p=project%2Fluci.git 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 --- 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) {