Changeset 37f537f for tools/tracetop
- Timestamp:
- 03/25/09 14:11:52 (13 years ago)
- Branches:
- 4.0.1-hotfixes, cachetimestamps, develop, dpdk-ndag, etsilive, getfragoff, help, libtrace4, master, ndag_format, pfring, rc-4.0.1, rc-4.0.2, rc-4.0.3, rc-4.0.4, ringdecrementfix, ringperformance, ringtimestampfixes
- Children:
- 5865c72
- Parents:
- bdea38b
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tools/tracetop/tracetop.cc
r7babe98 r37f537f 216 216 getmaxyx(stdscr,row,col); 217 217 move(0,0); 218 printw("Total Bytes: %10" PRIu64 " (%s)\tTotal Packets: %10" PRIu64, total_bytes, nice_bandwidth(total_bytes ), total_packets);218 printw("Total Bytes: %10" PRIu64 " (%s)\tTotal Packets: %10" PRIu64, total_bytes, nice_bandwidth(total_bytes/interval), total_packets); 219 219 clrtoeol(); 220 220 attrset(A_REVERSE); … … 242 242 switch(display_as) { 243 243 case BYTES: 244 printw(" Bytes\t");244 printw("%7s","Bytes\t"); 245 245 break; 246 246 case BITS_PER_SEC: … … 291 291 switch (display_as) { 292 292 case BYTES: 293 printw("% "PRIu64"\t%"PRIu64"\n",293 printw("%7"PRIu64"\t%7"PRIu64"\n", 294 294 pq.top().bytes, 295 295 pq.top().packets);
Note: See TracChangeset
for help on using the changeset viewer.