]> git.ipfire.org Git - thirdparty/opentracker.git/commitdiff
Division in stats now works
authorerdgeist <>
Fri, 15 Dec 2006 23:46:34 +0000 (23:46 +0000)
committererdgeist <>
Fri, 15 Dec 2006 23:46:34 +0000 (23:46 +0000)
opentracker.c

index 5bd27b0ab5524b55c4b061ad9d3b011418cfdca6..53a2517093f0445074f0d946963b664d7359356e 100644 (file)
@@ -292,7 +292,7 @@ e500:
       { 
         unsigned long seconds_elapsed = time( NULL ) - ot_start_time;
         reply_size = sprintf( reply, "%d\n%d\nUp: %ld seconds (%ld hours)\nPretuned by german engineers, currently handling %li connections per second.",
-        ot_overall_connections, ot_overall_connections, seconds_elapsed, seconds_elapsed / 3600, ot_overall_connections / seconds_elapsed ? seconds_elapsed : 1 );
+        ot_overall_connections, ot_overall_connections, seconds_elapsed, seconds_elapsed / 3600, ot_overall_connections / ( seconds_elapsed ? seconds_elapsed : 1 ) );
       }
       break;
     default: /* neither *scrape nor announce */