Skip to content

Commit

Permalink
Avoid negative spike in generic/exim_mailstats.
Browse files Browse the repository at this point in the history
  • Loading branch information
jomono committed Mar 12, 2005
1 parent b758abd commit 3dd02f4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
1 change: 1 addition & 0 deletions ChangeLog
@@ -1,6 +1,7 @@
munin (CVS)

* Plugins: Correct history loss in linux/{df,df_inode}.
* Plugins: Avoid negative spike in generic/exim_mailstats.

munin (1.2.1)
* Main: fix the file vs. pipe check in munin-limits.
Expand Down
8 changes: 6 additions & 2 deletions node/node.d/exim_mailstats.in
Expand Up @@ -15,6 +15,9 @@
# exim - Where's exim?
#
# $Log$
# Revision 1.7.2.2 2005/03/12 23:07:17 jimmyo
# Avoid negative spike in generic/exim_mailstats.
#
# Revision 1.7.2.1 2005/03/09 19:24:12 jimmyo
# Thanks to Stephen Gran, generic/exim_mailstats now graphs rejects (Deb#295799).
#
Expand Down Expand Up @@ -195,11 +198,12 @@ if (! -f $logfile and ! -f $rotlogfile)
if (-f "$statefile")
{
open (IN, "$statefile") or exit 4;
if (<IN> =~ /^(\d+):(\d+):(\d+):(\d+)/)
my $in = <IN>;
if ($in =~ /^(\d+):(\d+):(\d+):(\d+)/)
{
($pos, $received, $completed, $rejected) = ($1, $2, $3, $4);
}
elsif (<IN> =~ /^(\d+):(\d+):(\d+)/)
elsif ($in =~ /^(\d+):(\d+):(\d+)/)
{
($pos, $received, $completed) = ($1, $2, $3);
$rejected = 0;
Expand Down

0 comments on commit 3dd02f4

Please sign in to comment.