]> git.defcon.no Git - trk/commitdiff
Oops, that was in the wrong spot
authorJon Langseth <fishy@defcon.no>
Tue, 14 May 2013 10:34:50 +0000 (12:34 +0200)
committerJon Langseth <fishy@defcon.no>
Tue, 14 May 2013 10:34:50 +0000 (12:34 +0200)
trk

diff --git a/trk b/trk
index f00ab04f50187a44bf28b07f8f1099a5ae54878b..f4297adc95a5d6edf1630f22d6b5b156fa2c1ce3 100755 (executable)
--- 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;
 
 }