From c3871caf2a6f1fc3c489791051ac773873ba171b Mon Sep 17 00:00:00 2001 From: z3APA3A <3APA3A@3proxy.ru> Date: Wed, 3 Jun 2015 15:35:33 +0300 Subject: [PATCH] traffic displayed incorrectly --- src/webadmin.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/webadmin.c b/src/webadmin.c index ad47b52..8c83ef0 100644 --- a/src/webadmin.c +++ b/src/webadmin.c @@ -480,9 +480,9 @@ void * adminchild(struct clientparam* param) { "MB%s" "%.3f MB" "%s", - (1024.0 * (float)cp->traflimgb) + (float)cp->traflim/1048576.0, + (4 * 1024.0 * (float)cp->traflimgb) + (float)cp->traflim/(1024.*1024.), rotations[cp->type], - (1024.0 * (float)cp->trafgb) + (float)cp->traf/1048576.0, + (4 * 1024.0 * (float)cp->trafgb) + (float)cp->traf/(1024.*1024.), cp->cleared?ctime(&cp->cleared):"never" ); inbuf += sprintf(buf + inbuf,