var cmdline = [
'graph', '-', '-a', 'PNG',
'-s', 'NOW-%s'.format(timespan || this.opts.timespan),
- '-e', 'NOW-60',
+ '-e', 'NOW-15',
'-w', width || this.opts.width,
'-h', height || this.opts.height
];
if (!gopts.rrasingle)
_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));
+ /* don't include AVERAGE if noavg option is set */
+ 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)
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],