luci-app-statistics: Add help text to RRD time spans
authorHannu Nyman <hannu.nyman@iki.fi>
Sun, 13 Dec 2020 09:47:35 +0000 (11:47 +0200)
committerHannu Nyman <hannu.nyman@iki.fi>
Sun, 13 Dec 2020 09:50:54 +0000 (11:50 +0200)
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>
applications/luci-app-statistics/htdocs/luci-static/resources/view/statistics/plugins/rrdtool.js

index d25c0f813951205f89fc9bc6b85180efb516b2ad..c1eb171ee7f32dee6d33907393cb3936be5b4ac3 100644 (file)
@@ -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) {