Statistics
| Branch: | Tag: | Revision:

root / snf-common / synnefo / util / units.py @ 3c98e3a5

History | View | Annotate | Download (4.2 kB)

# Date Author Comment
3c98e3a5 11/22/2013 04:44 pm Giorgos Korfiatis

common: Support parsing, printing inf numbers

By convention, infinite is represented by 2**63-1, the max value for
a signed 64 bit field.

44f510e1 05/22/2013 06:51 pm Giorgos Korfiatis

astakos: Support units in resource-related commands

Add library synnefo.util.units for parsing numerical values
with an optional unit suffix and printing integer values based
on a given style.

Styles `b', `kb', `mb', etc allow printing in the respective multiples...