pflogsumm.patch 789 B

123456789101112131415161718192021
  1. --- pflogsumm.pl.orig Tue Dec 31 19:30:43 2002
  2. +++ pflogsumm.pl Fri Jan 10 13:07:39 2003
  3. @@ -557,7 +557,7 @@
  4. @{$connTime{$1}} =
  5. ($msgYr, $msgMon + 1, $msgDay, $msgHr, $msgMin, $msgSec);
  6. } elsif(/: disconnect from /o) {
  7. - my ($pid, $hostID) = /\/smtpd\[(\d+)\]: disconnect from (.+)$/o;
  8. + my ($pid, $hostID) = /\/smtpd\[(\d+)\]: disconnect from (.+)$/o || next;
  9. if(exists($connTime{$pid})) {
  10. $hostID = gimme_domain($hostID);
  11. my($d, $h, $m, $s) = Delta_DHMS(@{$connTime{$pid}},
  12. @@ -1267,7 +1267,7 @@
  13. }
  14. my ($t_mday, $t_mon) = (localtime($time))[3,4];
  15. - return sprintf("%s %2d", $monthNames[$t_mon], $t_mday);
  16. + return sprintf("%s %02d", $monthNames[$t_mon], $t_mday);
  17. }
  18. # if there's a real domain: uses that. Otherwise uses the first