Skip to content

Instantly share code, notes, and snippets.

@jonyesno
Created October 25, 2010 09:00
Show Gist options
  • Save jonyesno/644635 to your computer and use it in GitHub Desktop.
Save jonyesno/644635 to your computer and use it in GitHub Desktop.
--- /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