changeset 18129:16f3919b78f5

Use the IEC binary units to match our math. Fixes #1684
author Richard Laager <rlaager@wiktel.com>
date Sat, 16 Jun 2007 22:32:54 +0000
parents 385624e1a0a7
children 17f7d072d471
files finch/gntft.c libpurple/util.c pidgin/gtkft.c
diffstat 3 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/finch/gntft.c	Sat Jun 16 22:01:53 2007 +0000
+++ b/finch/gntft.c	Sat Jun 16 22:32:54 2007 +0000
@@ -411,7 +411,7 @@
 
 	size_str      = purple_str_size_to_units(purple_xfer_get_size(xfer));
 	remaining_str = purple_str_size_to_units(purple_xfer_get_bytes_remaining(xfer));
-	kbsec = g_strdup_printf(_("%.2f KB/s"), kbps);
+	kbsec = g_strdup_printf(_("%.2f KiB/s"), kbps);
 
 	gnt_tree_change_text(GNT_TREE(xfer_dialog->tree), xfer, COLUMN_PROGRESS,
 			g_ascii_dtostr(prog_str, sizeof(prog_str), purple_xfer_get_progress(xfer) * 100.));
--- a/libpurple/util.c	Sat Jun 16 22:01:53 2007 +0000
+++ b/libpurple/util.c	Sat Jun 16 22:32:54 2007 +0000
@@ -3135,7 +3135,7 @@
 char *
 purple_str_size_to_units(size_t size)
 {
-	static const char *size_str[4] = { "bytes", "KB", "MB", "GB" };
+	static const char *size_str[4] = { "bytes", "KiB", "MiB", "GiB" };
 	float size_mag;
 	int size_index = 0;
 
--- a/pidgin/gtkft.c	Sat Jun 16 22:01:53 2007 +0000
+++ b/pidgin/gtkft.c	Sat Jun 16 22:32:54 2007 +0000
@@ -130,7 +130,7 @@
 	kbps    = (elapsed > 0 ? (kb_sent / elapsed) : 0);
 
 	if (kbsec != NULL) {
-		*kbsec = g_strdup_printf(_("%.2f KB/s"), kbps);
+		*kbsec = g_strdup_printf(_("%.2f KiB/s"), kbps);
 	}
 
 	if (time_elapsed != NULL)