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>
This commit is contained in:
Hannu Nyman 2020-12-13 11:47:35 +02:00
parent f7e5b56649
commit 1da78c0d03

View 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) {