From: Frederic Marchal Date: Wed, 29 May 2013 19:54:21 +0000 (+0200) Subject: Compare correctly a per user limit greater than 2GB X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b7c0a0109f693c93e40ee27d861003286e0afa3b;p=thirdparty%2Fsarg.git Compare correctly a per user limit greater than 2GB A user limit greater than 2GB would sometime list the user into the limit file even though the user does not exceed the limit. Thanks to RodinM for reporting this bug. --- diff --git a/html.c b/html.c index b23ce10..cd3ed48 100644 --- a/html.c +++ b/html.c @@ -528,7 +528,7 @@ void htmlrel(void) } if(PerUserLimit > 0) { - if(tnbytes > (PerUserLimit*1000000)) { + if(tnbytes/1000000LL > PerUserLimit) { limit_flag=0; if(access(PerUserLimitFile, R_OK) == 0) { if((fp_usr = fopen(PerUserLimitFile, "r")) == 0) {