Browse code

whitespaces printed in stats now

Jiri Kuthan authored on 27/08/2002 11:56:19
Showing 1 changed files
... ...
@@ -7,6 +7,7 @@
7 7
 #include "../../mem/shm_mem.h"
8 8
 #include "../../globals.h"
9 9
 #include "../../fifo_server.h"
10
+#include "../../config.h"
10 11
 #include "sl_stats.h"
11 12
 #include <strings.h>
12 13
 #include <stdio.h>
... ...
@@ -36,31 +37,31 @@ static int print_sl_stats(FILE *reply_file)
36 37
 		for (p=0; p<children_no; p++) 
37 38
 			add_sl_stats(&total, &sl_stats[b*children_no+p]);
38 39
 
39
-	fprintf(reply_file, "200: %d 202: %d 2xx: %d\n",
40
+	fprintf(reply_file, "200: %d 202: %d 2xx: %d" CLEANUP_EOL,
40 41
 		total.err[RT_200], total.err[RT_202], total.err[RT_2xx]);
41 42
 
42 43
 	fprintf(reply_file, "300: %d 301: %d 302: %d"
43
-		" 3xx: %d\n",
44
+		" 3xx: %d" CLEANUP_EOL,
44 45
 		total.err[RT_300], total.err[RT_301], total.err[RT_302], 
45 46
 		total.err[RT_3xx] );
46 47
 
47 48
 	fprintf(reply_file, "400: %d 401: %d 403: %d"
48 49
 		" 404: %d 407: %d 408: %d"
49
-		" 483: %d 4xx: %d\n",
50
+		" 483: %d 4xx: %d" CLEANUP_EOL,
50 51
 		total.err[RT_400], total.err[RT_401], total.err[RT_403], 
51 52
 		total.err[RT_404], total.err[RT_407], total.err[RT_408],
52 53
 		total.err[RT_483], total.err[RT_4xx]);
53 54
 
54
-	fprintf(reply_file, "500: %d 5xx: %d\n",
55
+	fprintf(reply_file, "500: %d 5xx: %d" CLEANUP_EOL,
55 56
 		total.err[RT_500], total.err[RT_5xx] );
56 57
 
57
-	fprintf(reply_file, "6xx: %d\n",
58
+	fprintf(reply_file, "6xx: %d" CLEANUP_EOL,
58 59
 		total.err[RT_6xx] );
59 60
 
60
-	fprintf(reply_file, "xxx: %d\n",
61
+	fprintf(reply_file, "xxx: %d" CLEANUP_EOL,
61 62
 		total.err[RT_xxx] );
62 63
 
63
-	fprintf(reply_file, "failures: %d\n",
64
+	fprintf(reply_file, "failures: %d" CLEANUP_EOL,
64 65
 		total.failures );
65 66
 
66 67
 	return 1;