ref: refs/heads/master
commit 9f0f5c732a49bab466224b55dddb23dd0fd12387
Author: Michael Andres
Date: Wed Feb 11 13:50:33 2009 +0100
Follow IEC and use the binary prefixes (KiB,MiB,GiB) for printing Byte
counts based on a power of 1024 (formerly just K,M,G).
---
package/libzypp.changes | 7 +++++++
zypp/ByteCount.cc | 8 ++++----
2 files changed, 11 insertions(+), 4 deletions(-)
diff --git a/package/libzypp.changes b/package/libzypp.changes
index 3b4a54e..82bb998 100644
--- a/package/libzypp.changes
+++ b/package/libzypp.changes
@@ -1,4 +1,11 @@
-------------------------------------------------------------------
+Wed Feb 11 13:31:03 CET 2009 - ma@suse.de
+
+- Follow IEC and use the binary prefixes (KiB,MiB,GiB) for printing Byte
+ counts based on a power of 1024 (formerly just K,M,G). Byte counts based
+ on a power of 1000 stay unaffected (kB,MB,GB).
+
+-------------------------------------------------------------------
Mon Feb 9 13:14:26 CET 2009 - ma@suse.de
- Fix installation prompting for the wrong CD/DVD. (bnc #472892)
diff --git a/zypp/ByteCount.cc b/zypp/ByteCount.cc
index f44cdcd..138693f 100644
--- a/zypp/ByteCount.cc
+++ b/zypp/ByteCount.cc
@@ -20,10 +20,10 @@ namespace zypp
{ /////////////////////////////////////////////////////////////////
const ByteCount::Unit ByteCount::B( 1LL, "B", 0 );
- const ByteCount::Unit ByteCount::K( 1024LL, "K", 1 );
- const ByteCount::Unit ByteCount::M( 1048576LL, "M", 1 );
- const ByteCount::Unit ByteCount::G( 1073741824LL, "G", 2 );
- const ByteCount::Unit ByteCount::T( 1099511627776LL, "T", 3 );
+ const ByteCount::Unit ByteCount::K( 1024LL, "KiB", 1 );
+ const ByteCount::Unit ByteCount::M( 1048576LL, "MiB", 1 );
+ const ByteCount::Unit ByteCount::G( 1073741824LL, "GiB", 2 );
+ const ByteCount::Unit ByteCount::T( 1099511627776LL, "TiB", 3 );
const ByteCount::Unit ByteCount::kB( 1000LL, "kB", 1 );
const ByteCount::Unit ByteCount::MB( 1000000LL, "MB", 1 );
--
To unsubscribe, e-mail: zypp-commit+unsubscribe@opensuse.org
For additional commands, e-mail: zypp-commit+help@opensuse.org