From: minima Date: Wed, 23 Feb 2005 17:12:00 +0000 (+0000) Subject: fix time to be an int compare of minutes X-Git-Tag: R_1_52~151 X-Git-Url: http://dxcluster.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=0dfc6b88cf90a8b8d01f672f6c75915dd4afaf6a;p=spider.git fix time to be an int compare of minutes --- diff --git a/perl/Thingy/Dx.pm b/perl/Thingy/Dx.pm index 527d9353..c94760c2 100644 --- a/perl/Thingy/Dx.pm +++ b/perl/Thingy/Dx.pm @@ -31,8 +31,8 @@ sub gen_Aranea $thing->{f} = $sd->[0]; $thing->{c} = $sd->[1]; $thing->{b} = $sd->[4] unless $thing->{user}; - my $t = $sd->[2] / 60; - $thing->{t} = sprintf("%X", $t) unless $t eq $main::systime / 60; + my $t = int($sd->[2] / 60); + $thing->{t} = sprintf("%X", $t) unless $t eq int($main::systime / 60); $thing->{o} = $sd->[7] unless $sd->[7] eq $main::mycall; $thing->{i} = $sd->[3] if $sd->[3]; $thing->{Aranea} = Aranea::genmsg($thing, [qw(f c b t o i)]);