diff --git a/ffserver.c b/ffserver.c index 2b5e6c8fdc..a061cfa9a1 100644 --- a/ffserver.c +++ b/ffserver.c @@ -295,8 +295,8 @@ static int need_to_start_children; static int nb_max_connections; static int nb_connections; -static int max_bandwidth; -static int current_bandwidth; +static uint64_t max_bandwidth; +static uint64_t current_bandwidth; static int64_t cur_time; // Making this global saves on passing it around everywhere @@ -1315,7 +1315,7 @@ static int http_parse_request(HTTPContext *c) q += snprintf(q, q - (char *) c->buffer + c->buffer_size, "\r\n"); q += snprintf(q, q - (char *) c->buffer + c->buffer_size, "
The server is too busy to serve your request at this time.
\r\n"); - q += snprintf(q, q - (char *) c->buffer + c->buffer_size, "The bandwidth being served (including your stream) is %dkbit/sec, and this exceeds the limit of %dkbit/sec.
\r\n", + q += snprintf(q, q - (char *) c->buffer + c->buffer_size, "The bandwidth being served (including your stream) is %lldkbit/sec, and this exceeds the limit of %lldkbit/sec.
\r\n", current_bandwidth, max_bandwidth); q += snprintf(q, q - (char *) c->buffer + c->buffer_size, "\r\n"); @@ -1811,7 +1811,7 @@ static void compute_status(HTTPContext *c) url_fprintf(pb, "Number of connections: %d / %d