rem: fprintf(f, "Current:\n"); fprintf(f, "# of transactions: %10lu, ", cur_stats->transactions ); fprintf(f, "local: %10lu, ", cur_stats->client_transactions ); fprintf(f, "waiting: %10lu" CLEANUP_EOL , cur_stats->waiting );
add: unsigned long total, current, waiting, total_local; int i; int pno;
context: int print_stats(  FILE *f ){	fprintf(f, "Current:\n");	fprintf(f, "# of transactions: %10lu, ", 		cur_stats->transactions );	fprintf(f, "local: %10lu, ",		cur_stats->client_transactions );	fprintf(f, "waiting: %10lu" CLEANUP_EOL ,		cur_stats->waiting );	fprintf(f, "Total:\n");	fprintf(f, "# of transactions: %10lu,",		acc_stats->transactions );	fprintf(f, " local: %10lu,",		acc_stats->client_transactions );	fprintf(f, " waiting: %10lu" CLEANUP_EOL ,		acc_stats->waiting );	fprintf(f, "Replied localy: %10lu" CLEANUP_EOL ,		acc_stats->replied_localy );	fprintf(f, "Completion status 6xx: %10lu,",		acc_stats->completed_6xx );	fprintf(f, " 5xx: %10lu,",		acc_stats->completed_5xx );	fprintf(f, " 4xx: %10lu,",		acc_stats->completed_4xx );	fprintf(f, " 3xx: %10lu,",		acc_stats->completed_3xx );	fprintf(f, "2xx: %10lu" CLEANUP_EOL ,		acc_stats->completed_2xx );		return 1;}