Changeset 1961 for pjproject/trunk/pjsip-apps/src/samples/streamutil.c
- Timestamp:
- May 17, 2008 2:54:18 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip-apps/src/samples/streamutil.c
r1943 r1961 769 769 " total %s packets %sB received (%sB +IP hdr)%s\n" 770 770 " pkt loss=%d (%3.1f%%), dup=%d (%3.1f%%), reorder=%d (%3.1f%%)%s\n" 771 " (msec) min avg max last \n"772 " loss period: %7.3f %7.3f %7.3f %7.3f %s\n"773 " jitter : %7.3f %7.3f %7.3f %7.3f %s\n",771 " (msec) min avg max last dev\n" 772 " loss period: %7.3f %7.3f %7.3f %7.3f %7.3f%s\n" 773 " jitter : %7.3f %7.3f %7.3f %7.3f %7.3f%s\n", 774 774 last_update, 775 775 good_number(packets, stat.rx.pkt), … … 785 785 "", 786 786 stat.rx.loss_period.min / 1000.0, 787 stat.rx.loss_period. avg/ 1000.0,787 stat.rx.loss_period.mean / 1000.0, 788 788 stat.rx.loss_period.max / 1000.0, 789 789 stat.rx.loss_period.last / 1000.0, 790 pj_math_stat_get_stddev(&stat.rx.loss_period) / 1000.0, 790 791 "", 791 792 stat.rx.jitter.min / 1000.0, 792 stat.rx.jitter. avg/ 1000.0,793 stat.rx.jitter.mean / 1000.0, 793 794 stat.rx.jitter.max / 1000.0, 794 795 stat.rx.jitter.last / 1000.0, 796 pj_math_stat_get_stddev(&stat.rx.jitter) / 1000.0, 795 797 "" 796 798 ); … … 812 814 " total %s packets %sB sent (%sB +IP hdr)%s\n" 813 815 " pkt loss=%d (%3.1f%%), dup=%d (%3.1f%%), reorder=%d (%3.1f%%)%s\n" 814 " (msec) min avg max last \n"815 " loss period: %7.3f %7.3f %7.3f %7.3f %s\n"816 " jitter : %7.3f %7.3f %7.3f %7.3f %s\n",816 " (msec) min avg max last dev\n" 817 " loss period: %7.3f %7.3f %7.3f %7.3f %7.3f%s\n" 818 " jitter : %7.3f %7.3f %7.3f %7.3f %7.3f%s\n", 817 819 last_update, 818 820 good_number(packets, stat.tx.pkt), … … 828 830 "", 829 831 stat.tx.loss_period.min / 1000.0, 830 stat.tx.loss_period. avg/ 1000.0,832 stat.tx.loss_period.mean / 1000.0, 831 833 stat.tx.loss_period.max / 1000.0, 832 834 stat.tx.loss_period.last / 1000.0, 835 pj_math_stat_get_stddev(&stat.tx.loss_period) / 1000.0, 833 836 "", 834 837 stat.tx.jitter.min / 1000.0, 835 stat.tx.jitter. avg/ 1000.0,838 stat.tx.jitter.mean / 1000.0, 836 839 stat.tx.jitter.max / 1000.0, 837 840 stat.tx.jitter.last / 1000.0, 841 pj_math_stat_get_stddev(&stat.tx.jitter) / 1000.0, 838 842 "" 839 843 ); 840 844 841 845 842 printf(" RTT delay : %7.3f %7.3f %7.3f %7.3f %s\n",846 printf(" RTT delay : %7.3f %7.3f %7.3f %7.3f %7.3f%s\n", 843 847 stat.rtt.min / 1000.0, 844 stat.rtt. avg/ 1000.0,848 stat.rtt.mean / 1000.0, 845 849 stat.rtt.max / 1000.0, 846 850 stat.rtt.last / 1000.0, 851 pj_math_stat_get_stddev(&stat.rtt) / 1000.0, 847 852 "" 848 853 ); … … 886 891 SAMPLES_TO_USEC(jmean, xr_stat.rx.stat_sum.jitter.mean, 887 892 port->info.clock_rate); 888 SAMPLES_TO_USEC(jdev, xr_stat.rx.stat_sum.jitter.dev, 889 port->info.clock_rate); 893 SAMPLES_TO_USEC(jdev, 894 pj_math_stat_get_stddev(&xr_stat.rx.stat_sum.jitter), 895 port->info.clock_rate); 890 896 sprintf(jitter, "%7.3f %7.3f %7.3f %7.3f", 891 897 jmin/1000.0, jmean/1000.0, jmax/1000.0, jdev/1000.0); … … 898 904 xr_stat.rx.stat_sum.toh.mean, 899 905 xr_stat.rx.stat_sum.toh.max, 900 xr_stat.rx.stat_sum.toh.dev);906 pj_math_stat_get_stddev(&xr_stat.rx.stat_sum.toh)); 901 907 } else 902 908 sprintf(toh, "(report not available)"); … … 948 954 SAMPLES_TO_USEC(jmean, xr_stat.tx.stat_sum.jitter.mean, 949 955 port->info.clock_rate); 950 SAMPLES_TO_USEC(jdev, xr_stat.tx.stat_sum.jitter.dev, 951 port->info.clock_rate); 956 SAMPLES_TO_USEC(jdev, 957 pj_math_stat_get_stddev(&xr_stat.tx.stat_sum.jitter), 958 port->info.clock_rate); 952 959 sprintf(jitter, "%7.3f %7.3f %7.3f %7.3f", 953 960 jmin/1000.0, jmean/1000.0, jmax/1000.0, jdev/1000.0); … … 960 967 xr_stat.tx.stat_sum.toh.mean, 961 968 xr_stat.tx.stat_sum.toh.max, 962 xr_stat.tx.stat_sum.toh.dev);969 pj_math_stat_get_stddev(&xr_stat.rx.stat_sum.toh)); 963 970 } else 964 971 sprintf(toh, "(report not available)"); … … 1169 1176 1170 1177 1171 /* RTT delay , need this?*/1172 printf(" (msec) min avg max last \n");1173 printf(" RTT delay : %7.3f %7.3f %7.3f %7.3f %s\n",1178 /* RTT delay (by receiver side) */ 1179 printf(" (msec) min avg max last dev\n"); 1180 printf(" RTT delay : %7.3f %7.3f %7.3f %7.3f %7.3f%s\n", 1174 1181 xr_stat.rtt.min / 1000.0, 1175 xr_stat.rtt. avg/ 1000.0,1182 xr_stat.rtt.mean / 1000.0, 1176 1183 xr_stat.rtt.max / 1000.0, 1177 1184 xr_stat.rtt.last / 1000.0, 1185 pj_math_stat_get_stddev(&xr_stat.rtt) / 1000.0, 1178 1186 "" 1179 1187 );
Note: See TracChangeset
for help on using the changeset viewer.