mirror of
				git://erdgeist.org/opentracker
				synced 2025-11-04 11:53:22 +08:00 
			
		
		
		
	Division in stats now works
This commit is contained in:
		
							parent
							
								
									ed0edcaae8
								
							
						
					
					
						commit
						1d5f915940
					
				@ -292,7 +292,7 @@ e500:
 | 
				
			|||||||
      { 
 | 
					      { 
 | 
				
			||||||
        unsigned long seconds_elapsed = time( NULL ) - ot_start_time;
 | 
					        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.",
 | 
					        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;
 | 
					      break;
 | 
				
			||||||
    default: /* neither *scrape nor announce */
 | 
					    default: /* neither *scrape nor announce */
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user