From dfbec290ae0913894b33a0c532bfcdaa0e24959b Mon Sep 17 00:00:00 2001 From: Andrew Ruthven Date: Fri, 7 Dec 2018 10:30:14 +1300 Subject: [PATCH] Clean off unneeded precision --- bin/mythtv-status | 1 + 1 file changed, 1 insertion(+) diff --git a/bin/mythtv-status b/bin/mythtv-status index d206038..5c82378 100755 --- a/bin/mythtv-status +++ b/bin/mythtv-status @@ -1028,6 +1028,7 @@ sub substitute_vars { if (defined $vars->{$key} && defined $unit->{'threshold'}) { if ($vars->{$key} > $unit->{'threshold'}) { $vars->{$key} = sprintf("%.1f", $vars->{$key} / $unit->{'conversion'}); + $vars->{$key} =~ s/\.0//; $vars->{"${key}_unit"} = $unit->{'unit'}; last; -- 2.30.2