[Asterisk-cvs] zaptel zttest.c,1.1,1.2
markster at lists.digium.com
markster at lists.digium.com
Mon Mar 28 23:29:23 CST 2005
- Previous message: [Asterisk-cvs] asterisk/formats format_g726.c, 1.7,
1.8 format_g729.c, 1.16, 1.17 format_gsm.c, 1.21,
1.22 format_h263.c, 1.8, 1.9 format_ilbc.c, 1.9,
1.10 format_jpeg.c, 1.7, 1.8 format_pcm.c, 1.17,
1.18 format_pcm_alaw.c, 1.15, 1.16 format_sln.c, 1.4,
1.5 format_vox.c, 1.18, 1.19 format_wav.c, 1.21,
1.22 format_wav_gsm.c, 1.30, 1.31
- Next message: [Asterisk-cvs] asterisk cdr.c,1.31,1.32 pbx.c,1.215,1.216
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /usr/cvsroot/zaptel
In directory mongoose.digium.com:/tmp/cvs-serv7162
Modified Files:
zttest.c
Log Message:
Improve zttest (bug #3705)
Index: zttest.c
===================================================================
RCS file: /usr/cvsroot/zaptel/zttest.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- zttest.c 2 May 2004 00:40:47 -0000 1.1
+++ zttest.c 29 Mar 2005 05:23:08 -0000 1.2
@@ -13,11 +13,12 @@
static int pass = 0;
static float best = 0.0;
static float worst = 100.0;
+static float total = 0.0;
void hup_handler(int sig)
{
printf("\n--- Results after %d passes ---\n", pass);
- printf("Best: %f -- Worst: %f\n", best, worst);
+ printf("Best: %f -- Worst: %f -- Average: %f\n", best, worst, pass ? total/pass : 100.00);
exit(0);
}
@@ -71,6 +72,7 @@
if (score < worst)
worst = score;
printf("%f%% ", score);
+ total += score;
fflush(stdout);
count = 0;
pass++;
- Previous message: [Asterisk-cvs] asterisk/formats format_g726.c, 1.7,
1.8 format_g729.c, 1.16, 1.17 format_gsm.c, 1.21,
1.22 format_h263.c, 1.8, 1.9 format_ilbc.c, 1.9,
1.10 format_jpeg.c, 1.7, 1.8 format_pcm.c, 1.17,
1.18 format_pcm_alaw.c, 1.15, 1.16 format_sln.c, 1.4,
1.5 format_vox.c, 1.18, 1.19 format_wav.c, 1.21,
1.22 format_wav_gsm.c, 1.30, 1.31
- Next message: [Asterisk-cvs] asterisk cdr.c,1.31,1.32 pbx.c,1.215,1.216
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the svn-commits
mailing list