From: Andrew Ruthven Date: Thu, 6 Dec 2018 21:30:14 +0000 (+1300) Subject: Clean off unneeded precision X-Git-Tag: 1.0.0~50 X-Git-Url: http://git.etc.gen.nz/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dfbec290ae0913894b33a0c532bfcdaa0e24959b;p=mythtv-status.git Clean off unneeded precision --- 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;