From e4d2d93be5d04ebd93b01394232b1d7a88f98c8b Mon Sep 17 00:00:00 2001 From: Justin Lewis Date: Mon, 18 May 2020 23:30:50 -0700 Subject: [PATCH] Fix rubocop formatting error --- bin/check-disk-usage.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/check-disk-usage.rb b/bin/check-disk-usage.rb index 773ec21..c793985 100755 --- a/bin/check-disk-usage.rb +++ b/bin/check-disk-usage.rb @@ -215,7 +215,7 @@ def percent_bytes(fs_info) if nonroot_total.zero? 0 else - ('%.2f' % (u100 / nonroot_total + (u100 % nonroot_total != 0 ? 1 : 0))).to_f + (u100 / nonroot_total + (u100 % nonroot_total != 0 ? 1 : 0)).round(2) end else (100.0 - (100.0 * fs_info.bytes_free / fs_info.bytes_total)).round(2)