Skip to content

Commit

Permalink
Fix rubocop formatting error
Browse files Browse the repository at this point in the history
  • Loading branch information
SaviourSelf authored and majormoses committed May 20, 2020
1 parent 782ae81 commit e4d2d93
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/check-disk-usage.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit e4d2d93

Please sign in to comment.