Created
October 25, 2010 09:00
-
-
Save jonyesno/644635 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- /var/tmp/exim_mailstats 2010-10-25 09:45:38.000000000 +0100 | |
+++ ./exim_mailstats 2010-10-25 09:59:10.000000000 +0100 | |
@@ -106,8 +106,8 @@ | |
my ($LOGFILE, $rotated) = tail_open($fname, $start); | |
- if ($rotated) { | |
- # Reset everything if the log has been rotated | |
+ if ($rotated || $received eq 'U') { | |
+ # Reset everything if the log has been rotated or we've just initialized | |
$pos = $received = $completed = $rejected = 0; | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment