Package screenlets :: Package plugins :: Module SizeConverter

[hide private]
[frames] | no frames]

# Source Code for Module screenlets.plugins.SizeConverter

     1  from Convert import RatioConverter
     2
     3 -class SizeConverter(RatioConverter):
     4          """A converter which converts sizes between B, kB, MB and GB."""
     5
     6          __name__ = 'SizeConverter'
     7          __title__ = 'B / kB / MB / GB'
     8          __author__ = 'Hendrik Kaju'
     9          __version__ = '0.2'
    10
    11          num_fields = 4
    12          field_names = ['B', 'kB', 'MB', 'GB']
    13          weights = [1, 1024, 1024 * 1024, 1024 * 1024 * 1024]
    14