Hi,
I would find it very useful if the -N option of nfdump:
"-N Print the numbers in the summary line as plain numbers. Better parsing"
could be extended to whatever statistic is generated by the -s option,
not just the summary line. This would greatly simplify the writing of
plugins parsing multiple lines.
If I correctly understood, a simple modification to the format_number
function in nf-common.c would do the job: currently I brutally
circumvented the problem by the following immediate return
inline void format_number(uint64_t num, char *s, int fixed_width) {
double f = num;
snprintf(s, 31, "%.0f",f);
return;
if ( f >= _1TB ) {
if ( fixed_width )
the correct solution would be to pass the -N flag into that function and
condition the immediate return to it.
Anybody else seconding my proposal?
regards,
Maurizio
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Nfsen-discuss mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nfsen-discuss