Minor code cleanup

This commit is contained in:
Luca Deri 2016-08-15 11:52:07 +02:00
parent 1117d14750
commit d85555296f
6 changed files with 21 additions and 12 deletions

View file

@ -1396,7 +1396,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)