From c323c01a60accc6c7c1c363e1a9236bd4a960813 Mon Sep 17 00:00:00 2001 From: Andrew Ruthven Date: Fri, 7 Dec 2018 10:30:00 +1300 Subject: [PATCH] Round to an integer --- bin/mythtv-status | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/bin/mythtv-status b/bin/mythtv-status index 47ae766..d206038 100755 --- a/bin/mythtv-status +++ b/bin/mythtv-status @@ -1107,8 +1107,7 @@ sub calc_disk_space_percentage { return 'unknown'; } - my $percent = sprintf("%.1f", - normalise_disk_space($used) / $total * 100); + my $percent = int((normalise_disk_space($used) / $total * 100) + 0.5); if ($percent >= $c->{'disk_space_warn'}) { $exit_value ||= 1; -- 2.30.2