diff options
Diffstat (limited to 'applications')
-rw-r--r-- | applications/luci-app-statistics/htdocs/luci-static/resources/statistics/rrdtool.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/applications/luci-app-statistics/htdocs/luci-static/resources/statistics/rrdtool.js b/applications/luci-app-statistics/htdocs/luci-static/resources/statistics/rrdtool.js index 092dd45522..775db9bc3b 100644 --- a/applications/luci-app-statistics/htdocs/luci-static/resources/statistics/rrdtool.js +++ b/applications/luci-app-statistics/htdocs/luci-static/resources/statistics/rrdtool.js @@ -516,7 +516,8 @@ return baseclass.extend({ _args.push('GPRINT:%s_min:MIN:\tMin\\: %s'.format(source.sname, numfmt)); /* always include AVERAGE */ - _args.push('GPRINT:%s_avg:AVERAGE:\tAvg\\: %s'.format(source.sname, numfmt)); + if (!source.noavg) + _args.push('GPRINT:%s_avg:AVERAGE:\tAvg\\: %s'.format(source.sname, numfmt)); /* don't include MAX if rrasingle is enabled */ if (!gopts.rrasingle) @@ -605,6 +606,7 @@ return baseclass.extend({ overlay: dopts.overlay || false, transform_rpn: dopts.transform_rpn || '0,+', noarea: dopts.noarea || false, + noavg: dopts.noavg || false, title: dopts.title || null, weight: dopts.weight || (dopts.negweight ? -+data_instances[j] : null) || (dopts.posweight ? +data_instances[j] : null) || null, ds: data_sources[k], |