From c54ae2a857087ca405826081955dcdef81abc7bb Mon Sep 17 00:00:00 2001 From: "Jan \"Yenya\" Kasprzak" Date: Sun, 8 May 2011 22:12:40 +0200 Subject: [PATCH] Time difference prefix + instead of - The driver which is behind the leader has bigger time, so the difference should be annotated as e.g. "+0.15" or "+2 laps" instead of -. --- SCX/GUI.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SCX/GUI.pm b/SCX/GUI.pm index 41e9112..af9f769 100755 --- a/SCX/GUI.pm +++ b/SCX/GUI.pm @@ -273,9 +273,9 @@ sub set_distance { if (defined $time) { $text = format_race_time($time); } elsif (defined $time_diff) { - $text = '−' . format_lap_time($time_diff); + $text = '+' . format_lap_time($time_diff); } elsif (defined $lap_diff) { - $text = '−' . $lap_diff + $text = '+' . $lap_diff . ($lap_diff == 1 ? ' lap' : ' laps'); } -- 2.43.5