diff -Naur bristuff-0.2.0-RC7j.orig/zaptel-1.0.6/zttest.c bristuff-0.2.0-RC7j/zaptel-1.0.6/zttest.c --- bristuff-0.2.0-RC7j.orig/zaptel-1.0.6/zttest.c 2004-05-02 00:40:47.000000000 +0000 +++ bristuff-0.2.0-RC7j/zaptel-1.0.6/zttest.c 2005-03-01 20:57:33.798012360 +0000 @@ -11,13 +11,16 @@ #define SIZE 8000 static int pass = 0; +static int not100p = 0; static float best = 0.0; static float worst = 100.0; +static float cum = 0.0; void hup_handler(int sig) { printf("\n--- Results after %d passes ---\n", pass); printf("Best: %f -- Worst: %f\n", best, worst); + printf("Not 100%%: %d -- AVG: %f\n", not100p, cum/pass); exit(0); } @@ -71,6 +74,9 @@ if (score < worst) worst = score; printf("%f%% ", score); + cum+=score; + if (score<100) + not100p++; fflush(stdout); count = 0; pass++;