# HG changeset patch # User Matti Hamalainen # Date 1250373238 -10800 # Node ID 53b4352447618ab33455a6ce398c8180d363ef4a # Parent 57ef73cbad916648cd2fad5adf788cb78f8e9d98 More fixes in timestamp handling. diff -r 57ef73cbad91 -r 53b435244761 maltfilter --- a/maltfilter Sun Aug 16 00:47:51 2009 +0300 +++ b/maltfilter Sun Aug 16 00:53:58 2009 +0300 @@ -575,12 +575,12 @@ $struct->{$mip}{"reason"}{$mclass}{"msg"} = $mreason; } - if (!defined($struct->{$mip}{"date1"})) { + if (!defined($struct->{$mip}{"date1"}) || ($mdate > 0 && $struct->{$mip}{"date1"} < 0)) { $struct->{$mip}{"date1"} = $mdate; } $struct->{$mip}{"date2"} = $mdate; - if (!defined($struct->{$mip}{"reason"}{$mclass}{"date2"})) { + if (!defined($struct->{$mip}{"reason"}{$mclass}{"date2"}) || ($mdate > 0 && $struct->{$mip}{"reason"}{$mclass}{"date2"} < 0)) { $struct->{$mip}{"reason"}{$mclass}{"date2"} = $mdate; } $struct->{$mip}{"reason"}{$mclass}{"date2"} = $mdate;