fix time to be an int compare of minutes
[spider.git] / perl / Thingy / Dx.pm
index e2f9776f2dcf0a3a4a54d70434e8975db10fd149..c94760c25378809e7959fabcca595e76fab408b8 100644 (file)
@@ -31,10 +31,9 @@ sub gen_Aranea
                $thing->{f} = $sd->[0];
                $thing->{c} = $sd->[1];
                $thing->{b} = $sd->[4] unless $thing->{user};
-               unless ($sd->[7] eq $main::mycall) {
-                       $thing->{t} = sprintf("%X", $sd->[2] / 60);
-                       $thing->{o} =  $sd->[7]; 
-               }
+               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)]);
        }