On 12 Feb 1999, Russell Nelson wrote:

> And qmail-mrtg follows:

Thanks for sharing it.
However, at least on my host, it always produces two lines of '0'.
A proper close of the matchup process makes zoverall happy!  :-)

Mads

*** qmail-mrtg.orig     Mon Mar  1 22:30:04 1999
--- qmail-mrtg  Mon Mar  1 22:30:10 1999
***************
*** 33,48 ****
--- 33,49 ----
  open(QA, "|$qa/matchup >/tmp/out.$$ 5>$holdingfile") or die;
  while(<P>) { print QA; }
  close(P);
  while(<>) {
      split;
      next if ($_[0] < $start || $_[0] >= $stop);
      print QA;
  }
+ close(QA);
  
  # analyze the last five minutes.
  open(REP, "$qa/zoverall </tmp/out.$$|") or die;
  while(<REP>) {
    if (/^Completed messages: (\d+)/) {
      print "$1\n";
      if (!$1) {
        print "0\n";

Reply via email to