/usr/lib/ruby/vendor_ruby/aruba/platforms/disk_usage_calculator.rb is in ruby-aruba 0.14.2-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | require 'aruba/file_size'
# Aruba
module Aruba
# Platforms
module Platforms
# Calculate disk usage
class DiskUsageCalculator
# Calc
#
# @param [Integer] blocks
# Count of blocks
# @param [Integer] block_size
# The size of a single block
def call(blocks, block_size)
Aruba::FileSize.new(blocks * block_size)
end
end
end
end
|