Browse Source

Remove old instrumentation and format code

bel 8 years ago
parent
commit
3924d27aa5
2 changed files with 3 additions and 19 deletions
  1. 0 16
      src/civetweb.c
  2. 3 3
      test/timertest.c

+ 0 - 16
src/civetweb.c

@@ -4536,14 +4536,6 @@ push(struct mg_context *ctx,
 				/* shutdown of the socket at client side */
 				return -1;
 			}
-#if defined(TEMPORARY_INSTRUMENTATION)
-			{
-				FILE *f = fopen("r:\\all.txt", "ab");
-				fprintf(f, "\r\n%010u SEND:\r\n", GetTickCount());
-				fwrite(buf, 1, n, f);
-				fclose(f);
-			}
-#endif
 		}
 
 		if (ctx->stop_flag) {
@@ -4704,14 +4696,6 @@ pull(FILE *fp, struct mg_connection *conn, char *buf, int len, double timeout)
 				/* shutdown of the socket at client side */
 				return -1;
 			}
-#if defined(TEMPORARY_INSTRUMENTATION)
-			{
-				FILE *f = fopen("r:\\all.txt", "ab");
-				fprintf(f, "\r\n%010u RECV:\r\n", GetTickCount());
-				fwrite(buf, 1, nread, f);
-				fclose(f);
-			}
-#endif
 		} else if (pollres < 0) {
 			/* error callint poll */
 			return -1;

+ 3 - 3
test/timertest.c

@@ -113,9 +113,9 @@ START_TEST(test_timer_cyclic)
 
 	mark_point();
 
-/* If this test runs in a virtual environment, like the CI unit test
- * containers, there might be some timing deviations, so check the
- * counter with some tolerance. */
+	/* If this test runs in a virtual environment, like the CI unit test
+	 * containers, there might be some timing deviations, so check the
+	 * counter with some tolerance. */
 
 	ck_assert_int_ge(c[0], -1);
 	ck_assert_int_le(c[0], +1);