From 84b4998dbdbd7fc5a2dac58239cbe0989a6aa4da Mon Sep 17 00:00:00 2001 From: "Reynaldo H. Verdejo Pinochet" Date: Sun, 4 Oct 2015 14:45:49 -0700 Subject: [PATCH] ffserver: fix up rate units in server messages Signed-off-by: Reynaldo H. Verdejo Pinochet --- ffserver.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/ffserver.c b/ffserver.c index a45603ac20..85c9f1fd13 100644 --- a/ffserver.c +++ b/ffserver.c @@ -1491,8 +1491,8 @@ static int http_parse_request(HTTPContext *c) "

The server is too busy to serve your request at " "this time.

\r\n" "

The bandwidth being served (including your stream) " - "is %"PRIu64"kbit/sec, and this exceeds the limit of " - "%"PRIu64"kbit/sec.

\r\n" + "is %"PRIu64"kbit/s, and this exceeds the limit of " + "%"PRIu64"kbit/s.

\r\n" "\r\n", current_bandwidth, config.max_bandwidth); q += strlen(q); @@ -1789,7 +1789,7 @@ static inline void print_stream_params(AVIOContext *pb, FFServerStream *stream) stream_no = stream->nb_streams; avio_printf(pb, "
Stream" - "typekbits/scodec" + "typekbit/scodec" "Parameters\n"); for (i = 0; i < stream_no; i++) { @@ -1854,7 +1854,7 @@ static void compute_status(HTTPContext *c) /* format status */ avio_printf(pb, "

Available Streams

\n"); avio_printf(pb, "\n"); - avio_printf(pb, "
PathServed
Conns

bytes
FormatBit rate
kbits/s
Video
kbits/s

Codec
Audio
kbits/s

Codec
Feed\n"); + avio_printf(pb, "
PathServed
Conns

bytes
FormatBit rate
kbit/s
Video
kbit/s

Codec
Audio
kbit/s

Codec
Feed\n"); stream = config.first_stream; while (stream) { char sfilename[1024]; @@ -2009,7 +2009,7 @@ static void compute_status(HTTPContext *c) avio_printf(pb, "\n"); avio_printf(pb, "
#FileIPProtoStateTarget " - "bits/secActual bits/secBytes transferred\n"); + "bit/sActual bit/sBytes transferred\n"); c1 = first_http_ctx; i = 0; while (c1) {