lib/facter/resolvers/memory.rb in facter-4.5.2 vs lib/facter/resolvers/memory.rb in facter-4.6.0
- old
+ new
@@ -55,10 +55,10 @@
def kilobytes_to_bytes(quantity)
quantity.to_i * 1024
end
def compute_capacity(used, total)
- format('%<computed_capacity>.2f', computed_capacity: (used / total.to_f * 100)) + '%'
+ "#{format('%<computed_capacity>.2f', computed_capacity: (used / total.to_f * 100))}%"
end
def compute_used(total, free)
total - free
end