Removed the exabytes, zettabytes and yottabytes representations from nice_unit_format()
authorGuilherme Maciel Ferreira <guilherme.maciel.ferreira@intra2net.com>
Fri, 4 Feb 2011 11:25:39 +0000 (12:25 +0100)
committerGuilherme Maciel Ferreira <guilherme.maciel.ferreira@intra2net.com>
Fri, 4 Feb 2011 11:25:39 +0000 (12:25 +0100)
commit83809f5e58c942899e7c63c54365c353123d4f5e
treed89ce6c864626930519c7ea81fe667bc9c0c88c4
parent5cb766b94fd04442ee50aa866755c4b60e6c1be5
Removed the exabytes, zettabytes and yottabytes representations from nice_unit_format()
- Makes no sense keep those representations once int64 cannot handle them
- Added a safe guard to rollback values that cannot be represented (ie 2000.00 PB instead of 2.00 EB)
- Added a unit test to check how is represented the max int64 number
src/stringfunc.cpp
test/stringfunc.cpp