summaryrefslogtreecommitdiff
path: root/opentracker.c
diff options
context:
space:
mode:
authorerdgeist <>2006-12-15 23:46:34 +0000
committererdgeist <>2006-12-15 23:46:34 +0000
commit1d5f915940f115af21b100c5ca0ee4a0a6ff828b (patch)
tree066ac9e65ebac5d3fe0115e7d87e552868f5768d /opentracker.c
parented0edcaae8ac9885601defdb3d13d0bd88472456 (diff)
Division in stats now works
Diffstat (limited to 'opentracker.c')
-rw-r--r--opentracker.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/opentracker.c b/opentracker.c
index 5bd27b0..53a2517 100644
--- a/opentracker.c
+++ b/opentracker.c
@@ -292,7 +292,7 @@ e500:
292 { 292 {
293 unsigned long seconds_elapsed = time( NULL ) - ot_start_time; 293 unsigned long seconds_elapsed = time( NULL ) - ot_start_time;
294 reply_size = sprintf( reply, "%d\n%d\nUp: %ld seconds (%ld hours)\nPretuned by german engineers, currently handling %li connections per second.", 294 reply_size = sprintf( reply, "%d\n%d\nUp: %ld seconds (%ld hours)\nPretuned by german engineers, currently handling %li connections per second.",
295 ot_overall_connections, ot_overall_connections, seconds_elapsed, seconds_elapsed / 3600, ot_overall_connections / seconds_elapsed ? seconds_elapsed : 1 ); 295 ot_overall_connections, ot_overall_connections, seconds_elapsed, seconds_elapsed / 3600, ot_overall_connections / ( seconds_elapsed ? seconds_elapsed : 1 ) );
296 } 296 }
297 break; 297 break;
298 default: /* neither *scrape nor announce */ 298 default: /* neither *scrape nor announce */