Implements per-MAC RRDs (backend)

This commit is contained in:
Simone Mainardi 2017-10-04 16:30:38 +02:00
parent c54b2523a1
commit e6da58e567
3 changed files with 30 additions and 6 deletions

View file

@ -1113,7 +1113,7 @@ function singlerrd2json(ifid, host, rrdFile, start_time, end_time, rickshaw_json
-- do not scale number, packets, and drops
scaling_factor = 1
end
if(not ntop.notEmptyFile(rrdname)) then return '{}' end
local fstart, fstep, fnames, fdata = ntop.rrd_fetch(rrdname, 'AVERAGE', start_time, end_time)