Changeset 37f537f


Ignore:
Timestamp:
03/25/09 14:11:52 (12 years ago)
Author:
Perry Lorier <perry@…>
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
Message:

Clean up display
Fix the total bandwidth display

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tools/tracetop/tracetop.cc

    r7babe98 r37f537f  
    216216        getmaxyx(stdscr,row,col);
    217217        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);
    219219        clrtoeol();
    220220        attrset(A_REVERSE);
     
    242242        switch(display_as) {
    243243                case BYTES:
    244                         printw("Bytes\t");
     244                        printw("%7s","Bytes\t");
    245245                        break;
    246246                case BITS_PER_SEC:
     
    291291                switch (display_as) {
    292292                        case BYTES:
    293                                 printw("%"PRIu64"\t%"PRIu64"\n",
     293                                printw("%7"PRIu64"\t%7"PRIu64"\n",
    294294                                                pq.top().bytes,
    295295                                                pq.top().packets);
Note: See TracChangeset for help on using the changeset viewer.