Changeset 4977


Ignore:
Timestamp:
Jan 23, 2015 4:00:34 AM (9 years ago)
Author:
ming
Message:

Re #1782 (misc): Fixed inaccurate TX packet loss percentage and stats calculation.

File:
1 edited

Legend:

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

    r4613 r4977  
    167167           indent, 
    168168           stat->tx.loss, 
    169            (stat->tx.loss? stat->tx.loss * 100.0 / (stat->tx.pkt + stat->tx.loss) : 0), 
     169           (stat->tx.loss? stat->tx.loss * 100.0 / stat->tx.pkt : 0), 
    170170           stat->tx.dup, 
    171            (stat->tx.dup? stat->tx.dup * 100.0 / (stat->tx.pkt + stat->tx.loss) : 0), 
     171           (stat->tx.dup? stat->tx.dup * 100.0 / stat->tx.pkt : 0), 
    172172           stat->tx.reorder, 
    173            (stat->tx.reorder? stat->tx.reorder * 100.0 / (stat->tx.pkt + stat->tx.loss) : 0), 
     173           (stat->tx.reorder? stat->tx.reorder * 100.0 / stat->tx.pkt : 0), 
    174174 
    175175           indent, indent, 
Note: See TracChangeset for help on using the changeset viewer.