Follow IEC and use the binary prefixes (KiB,MiB,GiB) for printing Byte
authorMichael Andres <ma@suse.de>
Wed, 11 Feb 2009 12:50:33 +0000 (13:50 +0100)
committerMichael Andres <ma@suse.de>
Wed, 11 Feb 2009 12:50:33 +0000 (13:50 +0100)
counts based on a power of 1024 (formerly just K,M,G).

package/libzypp.changes
zypp/ByteCount.cc

index 3b4a54e..82bb998 100644 (file)
@@ -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)
index f44cdcd..138693f 100644 (file)
@@ -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 );