modules/graph_utils.lua: fix variable name

This commit fixes the name of one of the variables used in the
createRRDcounter() function which caused errors.
This commit is contained in:
Arianna Avanzini 2015-06-30 20:53:20 +02:00
parent 1d604d1902
commit 6ac384581d

View file

@ -878,11 +878,11 @@ function makeRRD(basedir, ifname, rrdname, step, value)
end
function createRRDcounter(path, step, verbose)
if(not(ntop.exists(name))) then
if(verbose) then print('Creating RRD ', name, '\n') end
if(not(ntop.exists(path))) then
if(verbose) then print('Creating RRD ', path, '\n') end
local prefs = ntop.getPrefs()
ntop.rrd_create(
name,
path,
step, -- step
'DS:sent:DERIVE:600:U:U',
'DS:rcvd:DERIVE:600:U:U',