Mercurial > hg > maltfilter
comparison maltfilter @ 36:53b435244761
More fixes in timestamp handling.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Sun, 16 Aug 2009 00:53:58 +0300 |
parents | e4ffe2ce29a3 |
children | 6e1f90d114bc |
comparison
equal
deleted
inserted
replaced
35:57ef73cbad91 | 36:53b435244761 |
---|---|
573 push(@{$struct->{$mip}{"reason"}{$mclass}{"msg"}}, $mreason); | 573 push(@{$struct->{$mip}{"reason"}{$mclass}{"msg"}}, $mreason); |
574 } else { | 574 } else { |
575 $struct->{$mip}{"reason"}{$mclass}{"msg"} = $mreason; | 575 $struct->{$mip}{"reason"}{$mclass}{"msg"} = $mreason; |
576 } | 576 } |
577 | 577 |
578 if (!defined($struct->{$mip}{"date1"})) { | 578 if (!defined($struct->{$mip}{"date1"}) || ($mdate > 0 && $struct->{$mip}{"date1"} < 0)) { |
579 $struct->{$mip}{"date1"} = $mdate; | 579 $struct->{$mip}{"date1"} = $mdate; |
580 } | 580 } |
581 $struct->{$mip}{"date2"} = $mdate; | 581 $struct->{$mip}{"date2"} = $mdate; |
582 | 582 |
583 if (!defined($struct->{$mip}{"reason"}{$mclass}{"date2"})) { | 583 if (!defined($struct->{$mip}{"reason"}{$mclass}{"date2"}) || ($mdate > 0 && $struct->{$mip}{"reason"}{$mclass}{"date2"} < 0)) { |
584 $struct->{$mip}{"reason"}{$mclass}{"date2"} = $mdate; | 584 $struct->{$mip}{"reason"}{$mclass}{"date2"} = $mdate; |
585 } | 585 } |
586 $struct->{$mip}{"reason"}{$mclass}{"date2"} = $mdate; | 586 $struct->{$mip}{"reason"}{$mclass}{"date2"} = $mdate; |
587 | 587 |
588 return $cnt; | 588 return $cnt; |