]> git.ipfire.org Git - thirdparty/sarg.git/commit - html.c
Avoid rereading the user_limit file each time a user is added
authorFrederic Marchal <fmarchal@users.sourceforge.net>
Thu, 30 May 2013 08:41:01 +0000 (10:41 +0200)
committerFrederic Marchal <fmarchal@users.sourceforge.net>
Thu, 30 May 2013 08:41:01 +0000 (10:41 +0200)
commitaa6ac9f26e8828c789f8105e38b4569130ffb6d7
treeb55728eb6d53c638170adf89c83ea8cd3766a38e
parent7a71d5cbc64506901c2bb06ab67cf6f7ffdd7e5c
Avoid rereading the user_limit file each time a user is added

Each time a user reach the download limit, he/she is added to the
user_limit file only once. Instead of rereading the whole file to see if
the user is already there, a flag is kept in memory to track already
limited users.
html.c
include/conf.h
include/defs.h
readlog.c
redirector.c
userinfo.c