git://developer.intra2net.com
/
libi2ncommon
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
18235d3
)
libi2ncommon: (reinhard) just 4 fun :-) (added ZBytes and YBytes to nice_unit_format)
author
Reinhard Pfau
<reinhard.pfau@intra2net.com>
Fri, 20 Jun 2008 13:50:34 +0000 (13:50 +0000)
committer
Reinhard Pfau
<reinhard.pfau@intra2net.com>
Fri, 20 Jun 2008 13:50:34 +0000 (13:50 +0000)
src/stringfunc.cpp
patch
|
blob
|
blame
|
history
diff --git
a/src/stringfunc.cpp
b/src/stringfunc.cpp
index
7753d96
..
bf6567d
100644
(file)
--- a/
src/stringfunc.cpp
+++ b/
src/stringfunc.cpp
@@
-934,6
+934,12
@@
string nice_unit_format(int input)
case 6:
out << size << i18n (" EBytes");
break;
+ case 7:
+ out << size << i18n (" ZBytes");
+ break;
+ case 8:
+ out << size << i18n (" YBytes");
+ break;
default:
out << size << "*10^" << (sizecount*3)<< i18n (" Bytes");
break;