mbolli / nfsen-ng

Responsive NetFlow visualizer built on top of nfdump tools.
Apache License 2.0
231 stars 43 forks source link

illegal rrd update #20

Open andreas-p opened 5 years ago

andreas-p commented 5 years ago

I successfully imported some data with -pf -p pf into rrd. Now, wen running the daemon, it will perodically log "illegal attempt to update using time 1549010700 when last update time is 1549010700 (minimum one second step)" (the timestamp changes with the latest nfcapd file).

Running on Debian-Stretch with rrdtool 1.6.0 and php-rrd 2.0.1

gothack329 commented 5 years ago

i got the same question...

mbolli commented 5 years ago

This is/was by design. Before, nfsen-ng occasionally missed a file, resulting in gaps in the graph.

Responsible lines: https://github.com/mbolli/nfsen-ng/blob/0edd0e671886ada14ed8db2a648ad260992d15e1/backend/common/import.php#L117-L118

If anybody's got time to test this, try to replace <= with < and see how good it works.