mirror of
git://erdgeist.org/opentracker
synced 2025-01-13 16:30:06 +00:00
Cast types for mrtg_scrape sprintf
This commit is contained in:
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…
Reference in New Issue
Block a user