|
Hello, You probably know the saying: Give a man enough rope and he will hang himself. Well, open-source software is sometimes known to 'give enough rope'. I'm sorry to say that the same thing can't be said about nfdump. :-) I tried to do a top 10000 (yes, it's big, but that's my problem, right?), and nfdump wouldn't let me because a valid topN is between 0 and 1000. So, I set out to remove this barrier, and I managed to do it. in nfdump.c (version 1.5.2), at line 1144 I modfied from: if ((aggregate || flow_stat) && ( topN > 1000 || topN == 0) ) { to if ((aggregate || flow_stat) && ( topN > 10000 || topN == 0) ) { I recompiled everything, and as magic, it works! (I admit, I was very surprised that it was so easy to do...) :-) So, you can say that I manufactured my extra rope... :) My question would be: why is this limitation imposed? Because everything seems to work fine with a greater top... Sorry for my ranting, Adrian Popa |
------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________ Nfsen-discuss mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/nfsen-discuss
