From a5d359eaff725889fd3554a7c3b7ac5088eb7c63 Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Sat, 16 Nov 2013 11:43:47 +0100 Subject: [PATCH] Show score_cp=0 as 0.00, not +0.00 or -0.00. --- remoteglot.pl | 3 +++ 1 file changed, 3 insertions(+) diff --git a/remoteglot.pl b/remoteglot.pl index b8377cc..bb16ebc 100755 --- a/remoteglot.pl +++ b/remoteglot.pl @@ -1058,6 +1058,9 @@ sub short_score { } else { if (exists($info->{'score_cp' . $mpv})) { my $score = $info->{'score_cp' . $mpv} * 0.01; + if ($score == 0) { + return " 0.00"; + } if ($invert) { $score = -$score; } -- 2.39.2