From 88535c250c3a76c8f5a2802b82ef9b039a2c8b1a Mon Sep 17 00:00:00 2001 From: Jon Langseth Date: Tue, 14 May 2013 12:34:50 +0200 Subject: [PATCH] Oops, that was in the wrong spot --- trk | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) 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; } -- 2.39.2