Closed nrensen closed 4 years ago
This can be fixed by replacing -4 with -3 above, but I thought it better to do this in the backend since the backend is responsible for producing the data and should understand the nfdump output. The frontend is then responsible only for display.
Makes sense. Thanks!
The csv output includes three summary rows at the end, e.g.
nfsen-ng.js strips these off, but takes 4 rows instead of three, losing a row of actual data:
var temprows = data.slice(2, data.length - 4),
For example, aggregate by proto with a filter of proto tcp should produce a single row, but I see no results.
This can be fixed by replacing -4 with -3 above, but I thought it better to do this in the backend since the backend is responsible for producing the data and should understand the nfdump output. The frontend is then responsible only for display.