]> git.ipfire.org Git - thirdparty/sarg.git/commitdiff
Backport a fix to accept a per user limit over 2G
authorFrederic Marchal <fmarchal@users.sourceforge.net>
Thu, 30 May 2013 08:53:20 +0000 (10:53 +0200)
committerFrederic Marchal <fmarchal@users.sourceforge.net>
Thu, 30 May 2013 08:53:20 +0000 (10:53 +0200)
html.c

diff --git a/html.c b/html.c
index 06eb399699dceca236d77d83e95c752cb79f06e7..5f7a4f21611537b6be6fc689d0bb75a977784fcd 100644 (file)
--- a/html.c
+++ b/html.c
@@ -526,7 +526,7 @@ void htmlrel(void)
                }
 
                if(PerUserLimit > 0) {
-                       if(tnbytes > (PerUserLimit*1000000)) {
+                       if ((int)(tnbytes/1000000LLU) > PerUserLimit) {
                                limit_flag=0;
                                if(access(PerUserLimitFile, R_OK) == 0) {
                                        if((fp_usr = fopen(PerUserLimitFile, "r")) == 0) {