34 lines
1.7 KiB
Diff
34 lines
1.7 KiB
Diff
|
--- src/netsniff-ng.c.orig 2009-12-31 11:00:20.000000000 +0100
|
||
|
+++ src/netsniff-ng.c 2009-12-31 11:02:16.000000000 +0100
|
||
|
@@ -139,16 +139,16 @@
|
||
|
*/
|
||
|
info("stats summary:\n");
|
||
|
info("--------------------------------------------------------------------------------------------\n");
|
||
|
- info("elapsed time: %llu d, %llu h, %llu min, %llu s, %llu ns\n", d_day,
|
||
|
+ info("elapsed time: %zu d, %zu h, %zu min, %zu s, %zu ns\n", d_day,
|
||
|
d_h, d_min, d_sec, d_nsec);
|
||
|
info("-----------+--------------------------+--------------------------+--------------------------\n");
|
||
|
info(" | per sec | per min | total \n");
|
||
|
info("-----------+--------------------------+--------------------------+--------------------------\n");
|
||
|
- info(" frames | %24llu | %24llu | %24llu \n",
|
||
|
+ info(" frames | %24zu | %24zu | %24zu \n",
|
||
|
netstat.s_per_sec.frames, netstat.s_per_min.frames,
|
||
|
netstat.total.frames);
|
||
|
info("-----------+--------------------------+--------------------------+--------------------------\n");
|
||
|
- info(" in B | %24llu | %24llu | %24llu \n",
|
||
|
+ info(" in B | %24zu | %24zu | %24zu \n",
|
||
|
netstat.s_per_sec.bytes, netstat.s_per_min.bytes,
|
||
|
netstat.total.bytes);
|
||
|
info(" in KB | %24llu | %24llu | %24llu \n",
|
||
|
@@ -516,8 +516,8 @@
|
||
|
* on 32 and 64 bit arch w/o gcc warnings
|
||
|
*/
|
||
|
|
||
|
- info("captured frames: %llu, "
|
||
|
- "captured bytes: %llu [%llu KB, %llu MB, %llu GB]\n",
|
||
|
+ info("captured frames: %zu, "
|
||
|
+ "captured bytes: %zu [%zu KB, %zu MB, %zu GB]\n",
|
||
|
netstat.total.frames, netstat.total.bytes,
|
||
|
netstat.total.bytes / 1024,
|
||
|
netstat.total.bytes / (1024 * 1024),
|