X-Git-Url: http://dxcluster.net/gitweb/gitweb.cgi?a=blobdiff_plain;f=perl%2FDXUtil.pm;h=207d27711e002e017ee72bcd5dcd5fede0273a82;hb=76027e074b381b0cdc76b3c23ac751802ee174fe;hp=30f12733216915cd13105b923e6528b2694150f7;hpb=a68508856d1efca83b9e21820e906229433dc681;p=spider.git diff --git a/perl/DXUtil.pm b/perl/DXUtil.pm index 30f12733..207d2771 100644 --- a/perl/DXUtil.pm +++ b/perl/DXUtil.pm @@ -578,7 +578,7 @@ sub difft $t -= $h * 3600; $m = int $t / 60; $out .= sprintf ("%s${m}m", $adds?' ':'') if $m; - if ($d == 0 && $adds || $adds == 2) { + if (($d == 0 && $adds) || (int $adds && $adds == 2)) { $s = int $t % 60; $out .= sprintf ("%s${s}s", $adds?' ':'') if $s; $out ||= sprintf ("%s0s", $adds?' ':'');