-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


- --On July 19, 2007 18:07:16 +0100 Maurizio Molina <[EMAIL PROTECTED]> wrote:

| 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"

It's already in place as of snapshot 20070312. It's only missing in the usage 
and man page.

    - Peter

|
| 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



- --
_______ SWITCH - The Swiss Education and Research Network ______
Peter Haag,  Security Engineer,  Member of SWITCH CERT
PGP fingerprint: D9 31 D5 83 03 95 68 BA  FB 84 CA 94 AB FC 5D D7
SWITCH, Werdstrasse 2, P.O. Box,  CH-8021   Zurich, Switzerland
E-mail: [EMAIL PROTECTED] Web: http://www.switch.ch/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (Darwin)

iQCVAwUBRqBoIP5AbZRALNr/AQKBKwP9FumackHt6633dh2F+cfpGhVTOU0aoR6N
4/8CMtGARi4B9ADKTnv19D88/F3BgXm1FioNZdlD2Tq7K974yJ/BbmWrSqPFnbhh
YaUvEBVZGGSGhjWiiIkC3FFzFHh/ZT0QJNMMTxc0SSZvTM1HJf8D4ZR87V5Q63Gm
jIVyCm4eOgY=
=f0qk
-----END PGP SIGNATURE-----


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) 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

Reply via email to