Cast types for mrtg_scrape sprintf

dynamic-accesslists
erdgeist 18 years ago
parent 22a0829f94
commit 41c307c3b0

@ -271,9 +271,9 @@ e500:
{ {
time_t seconds_elapsed = time( NULL ) - ot_start_time; time_t seconds_elapsed = time( NULL ) - ot_start_time;
reply_size = sprintf( static_reply + SUCCESS_HTTP_HEADER_LENGTH, reply_size = sprintf( static_reply + SUCCESS_HTTP_HEADER_LENGTH,
"%d\n%d\nUp: %ld seconds (%ld hours)\nPretuned by german engineers, currently handling %li connections per second.", "%i\n%i\nUp: %i seconds (%i hours)\nPretuned by german engineers, currently handling %i connections per second.",
ot_overall_connections, ot_overall_connections, seconds_elapsed, ot_overall_connections, ot_overall_connections, (int)seconds_elapsed,
seconds_elapsed / 3600, ot_overall_connections / ( seconds_elapsed ? seconds_elapsed : 1 ) ); (int)(seconds_elapsed / 3600), ot_overall_connections / ( seconds_elapsed ? seconds_elapsed : 1 ) );
} }
break; break;
default: /* neither *scrape nor announce */ default: /* neither *scrape nor announce */

Loading…
Cancel
Save