Hi Luca,

In looking at this code - I am having trouble
trying to understand it. Is it meant to only
do the rrd stuff every five minutes? If yes
it looks incorrect to me based on some diags
I have added to minute.lua.

I put a print before it and one at the end of the function
and I get them both every minute.

It seems like the if(verbose == 0) is not true, even though I am
not using -v on the command line. If I comment out the
if(verbose == 0) then it seems to do the following code
every 5 minutes.

   -- Run RRD update every 5 minutes
   -- Use 30 just to avoid rounding issues
   diff = when % 300

   -- io.write('Diff: '..diff..'\n')

   -- Toggle debug
   if(verbose == 0) then
      if(diff > 30) then
     return
      end
   end


--
Stephen Clark
*NetWolves*
Director of Technology
Phone: 813-579-3200
Fax: 813-882-0209
Email: [email protected]
http://www.netwolves.com
_______________________________________________
Ntop-dev mailing list
[email protected]
http://listgateway.unipi.it/mailman/listinfo/ntop-dev

Reply via email to