From: Jon Langseth Date: Tue, 14 May 2013 10:34:50 +0000 (+0200) Subject: Oops, that was in the wrong spot X-Git-Url: https://git.defcon.no/?a=commitdiff_plain;h=88535c250c3a76c8f5a2802b82ef9b039a2c8b1a;p=trk Oops, that was in the wrong spot --- diff --git a/trk b/trk index f00ab04..f4297ad 100755 --- a/trk +++ b/trk @@ -387,19 +387,21 @@ sub report ($$;$) } $total += $delta; - if ( $check eq $current ) - { - my $t; - if ( $t = current_starttime( $trk_id ) ) - { - my $delta = time - $t; - printf(" %s to NOW (active) => %s\n", time2str( $t ), delta2str( $delta ) ) if not $silent; - $total += $delta; - } - } } close ( TRACK ); + + if ( $check eq $current ) + { + my $t; + if ( $t = current_starttime( $trk_id ) ) + { + my $delta = time - $t; + printf(" %s to NOW (active) => %s\n", time2str( $t ), delta2str( $delta ) ) if not $silent; + $total += $delta; + } + } + return $total; }