thin_metadata_size: fix units

This commit is contained in:
Heinz Mauelshagen
2013-06-26 13:01:51 +02:00
parent 63c140d26e
commit 2631d377b5
2 changed files with 11 additions and 6 deletions

View File

@@ -27,7 +27,7 @@ def init_units
'petabytes', 'pebibytes', 'exabytes', 'ebibytes',
'zetabytes', 'zebibytes', 'yottabytes', 'yobibytes' ]
units[:factors] = [ 1, units[:bytes_per_sector] ]
1.step(8) { |e| units[:factors] += [ 1024**e, 1000**e ] }
1.step(8) { |e| units[:factors] += [ 1000**e, 1024**e ] }
units
end