]> git.ipfire.org Git - thirdparty/sarg.git/commit
Get rid of the dependency to an external tail command
authorFrederic Marchal <fmarchal@users.sourceforge.net>
Thu, 19 Mar 2015 19:56:30 +0000 (20:56 +0100)
committerFrederic Marchal <fmarchal@users.sourceforge.net>
Thu, 19 Mar 2015 19:56:30 +0000 (20:56 +0100)
commit8b4e95781c1ced38ab766be3659316c964e0de21
tree3c9e507037b922bc7c0d7d734fdeec20d9acff3d
parent7ab27b70125ad1b6037c63f340b7b2b95c1dc16f
Get rid of the dependency to an external tail command

The real time report relied on an external "tail" command to get the last
lines of the input log file. That dependency has been removed.

Moreover, if several log files were passed, the real time report would
always read the first one. Now, sarg chooses the most recently modified log
file.

The input log file can be in any supported format. It doesn't have to be
a standard squid log format.
include/readlog.h
log.c
readlog.c
readlog_squid.c
realtime.c