diff options
author | erdgeist <> | 2007-01-14 20:22:59 +0000 |
---|---|---|
committer | erdgeist <> | 2007-01-14 20:22:59 +0000 |
commit | 41c307c3b0bd83a516d1418d28fd0fdab2acab04 (patch) | |
tree | 1537ba46dfdad9ba003acb3b4ea19f09d4fe4b44 /opentracker.c | |
parent | 22a0829f9470e1cf4b084cd22881ee4f35d93f6e (diff) |
Cast types for mrtg_scrape sprintf
Diffstat (limited to 'opentracker.c')
-rw-r--r-- | opentracker.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/opentracker.c b/opentracker.c index 2579ab8..8c53452 100644 --- a/opentracker.c +++ b/opentracker.c | |||
@@ -271,9 +271,9 @@ e500: | |||
271 | { | 271 | { |
272 | time_t seconds_elapsed = time( NULL ) - ot_start_time; | 272 | time_t seconds_elapsed = time( NULL ) - ot_start_time; |
273 | reply_size = sprintf( static_reply + SUCCESS_HTTP_HEADER_LENGTH, | 273 | reply_size = sprintf( static_reply + SUCCESS_HTTP_HEADER_LENGTH, |
274 | "%d\n%d\nUp: %ld seconds (%ld hours)\nPretuned by german engineers, currently handling %li connections per second.", | 274 | "%i\n%i\nUp: %i seconds (%i hours)\nPretuned by german engineers, currently handling %i connections per second.", |
275 | ot_overall_connections, ot_overall_connections, seconds_elapsed, | 275 | ot_overall_connections, ot_overall_connections, (int)seconds_elapsed, |
276 | seconds_elapsed / 3600, ot_overall_connections / ( seconds_elapsed ? seconds_elapsed : 1 ) ); | 276 | (int)(seconds_elapsed / 3600), ot_overall_connections / ( seconds_elapsed ? seconds_elapsed : 1 ) ); |
277 | } | 277 | } |
278 | break; | 278 | break; |
279 | default: /* neither *scrape nor announce */ | 279 | default: /* neither *scrape nor announce */ |