Ignore:
Timestamp:
May 11, 2007 10:36:40 AM (17 years ago)
Author:
bennylp
Message:

Added IP bandwidth output in pjsua dq report

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip/src/pjsua-lib/pjsua_call.c

    r1242 r1264  
    16331633        const char *dir; 
    16341634        char last_update[64]; 
    1635         char packets[32], bytes[32], ipbytes[32], avg_bps[32]; 
     1635        char packets[32], bytes[32], ipbytes[32], avg_bps[32], avg_ipbps[32]; 
    16361636        pj_time_val media_duration, now; 
    16371637 
     
    16861686        len = pj_ansi_snprintf(p, end-p, 
    16871687               "%s     RX pt=%d, stat last update: %s\n" 
    1688                "%s        total %spkt %sB (%sB +IP hdr) @avg=%sbps\n" 
     1688               "%s        total %spkt %sB (%sB +IP hdr) @avg=%sbps/%sbps\n" 
    16891689               "%s        pkt loss=%d (%3.1f%%), dup=%d (%3.1f%%), reorder=%d (%3.1f%%)\n" 
    16901690               "%s              (msec)    min     avg     max     last\n" 
     
    16961696               good_number(packets, stat.rx.pkt), 
    16971697               good_number(bytes, stat.rx.bytes), 
    1698                good_number(ipbytes, stat.rx.bytes + stat.rx.pkt * 32), 
     1698               good_number(ipbytes, stat.rx.bytes + stat.rx.pkt * 40), 
    16991699               good_number(avg_bps, stat.rx.bytes * 8 * 1000 / PJ_TIME_VAL_MSEC(media_duration)), 
     1700               good_number(avg_ipbps, (stat.rx.bytes + stat.rx.pkt * 40) * 8 * 1000 / PJ_TIME_VAL_MSEC(media_duration)), 
    17001701               indent, 
    17011702               stat.rx.loss, 
     
    17411742        len = pj_ansi_snprintf(p, end-p, 
    17421743               "%s     TX pt=%d, ptime=%dms, stat last update: %s\n" 
    1743                "%s        total %spkt %sB (%sB +IP hdr) @avg %sbps\n" 
     1744               "%s        total %spkt %sB (%sB +IP hdr) @avg %sbps/%sbps\n" 
    17441745               "%s        pkt loss=%d (%3.1f%%), dup=%d (%3.1f%%), reorder=%d (%3.1f%%)\n" 
    17451746               "%s              (msec)    min     avg     max     last\n" 
     
    17551756               good_number(packets, stat.tx.pkt), 
    17561757               good_number(bytes, stat.tx.bytes), 
    1757                good_number(ipbytes, stat.tx.bytes + stat.tx.pkt * 32), 
     1758               good_number(ipbytes, stat.tx.bytes + stat.tx.pkt * 40), 
    17581759               good_number(avg_bps, stat.tx.bytes * 8 * 1000 / PJ_TIME_VAL_MSEC(media_duration)), 
     1760               good_number(avg_ipbps, (stat.tx.bytes + stat.tx.pkt * 40) * 8 * 1000 / PJ_TIME_VAL_MSEC(media_duration)), 
    17591761 
    17601762               indent, 
Note: See TracChangeset for help on using the changeset viewer.