summaryrefslogtreecommitdiff
path: root/opentracker.c
diff options
context:
space:
mode:
Diffstat (limited to 'opentracker.c')
-rw-r--r--opentracker.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/opentracker.c b/opentracker.c
index 67e9f9a..ad6dad4 100644
--- a/opentracker.c
+++ b/opentracker.c
@@ -318,7 +318,7 @@ static void httpresponse( const int64 s, char *data ) {
318 ot_dword diff; struct timeval tv1, tv2; gettimeofday( &tv1, NULL ); 318 ot_dword diff; struct timeval tv1, tv2; gettimeofday( &tv1, NULL );
319 if( !( reply_size = return_stats_for_slash24s( SUCCESS_HTTP_HEADER_LENGTH + static_outbuf, 25, 16 ) ) ) HTTPERROR_500; 319 if( !( reply_size = return_stats_for_slash24s( SUCCESS_HTTP_HEADER_LENGTH + static_outbuf, 25, 16 ) ) ) HTTPERROR_500;
320 gettimeofday( &tv2, NULL ); diff = ( tv2.tv_sec - tv1.tv_sec ) * 1000000 + tv2.tv_usec - tv1.tv_usec; 320 gettimeofday( &tv2, NULL ); diff = ( tv2.tv_sec - tv1.tv_sec ) * 1000000 + tv2.tv_usec - tv1.tv_usec;
321 reply_size += sprintf( SUCCESS_HTTP_HEADER_LENGTH + static_outbuf + reply_size, "Time taken: %ld\n", diff ); 321 reply_size += sprintf( SUCCESS_HTTP_HEADER_LENGTH + static_outbuf + reply_size, "Time taken: %u\n", diff );
322 break; 322 break;
323} 323}
324 case STATS_SLASH24S_OLD: 324 case STATS_SLASH24S_OLD:
@@ -326,7 +326,7 @@ static void httpresponse( const int64 s, char *data ) {
326 ot_dword diff; struct timeval tv1, tv2; gettimeofday( &tv1, NULL ); 326 ot_dword diff; struct timeval tv1, tv2; gettimeofday( &tv1, NULL );
327 if( !( reply_size = return_stats_for_slash24s_old( SUCCESS_HTTP_HEADER_LENGTH + static_outbuf, 25, 16 ) ) ) HTTPERROR_500; 327 if( !( reply_size = return_stats_for_slash24s_old( SUCCESS_HTTP_HEADER_LENGTH + static_outbuf, 25, 16 ) ) ) HTTPERROR_500;
328 gettimeofday( &tv2, NULL ); diff = ( tv2.tv_sec - tv1.tv_sec ) * 1000000 + tv2.tv_usec - tv1.tv_usec; 328 gettimeofday( &tv2, NULL ); diff = ( tv2.tv_sec - tv1.tv_sec ) * 1000000 + tv2.tv_usec - tv1.tv_usec;
329 reply_size += sprintf( SUCCESS_HTTP_HEADER_LENGTH + static_outbuf + reply_size, "Time taken: %ld\n", diff ); 329 reply_size += sprintf( SUCCESS_HTTP_HEADER_LENGTH + static_outbuf + reply_size, "Time taken: %u\n", diff );
330 break; 330 break;
331} 331}
332 } 332 }