changeset 10103:a9521c791afe

[gaim-migrate @ 11130] http://calebg.dyndns.org/~caleb/gaim-oldstatus-no-decimal-bytes.diff shouldn't show decimals when dealing with bytes committer: Tailor Script <tailor@pidgin.im>
author Luke Schierer <lschiere@pidgin.im>
date Sat, 16 Oct 2004 01:05:40 +0000
parents 0f1c25270121
children 60db14d54914
files src/util.c
diffstat 1 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/util.c	Fri Oct 15 18:44:05 2004 +0000
+++ b/src/util.c	Sat Oct 16 01:05:40 2004 +0000
@@ -2364,7 +2364,11 @@
 			size_index++;
 		}
 
-		return g_strdup_printf("%.2f %s", size_mag, size_str[size_index]);
+		if (size_index == 0) {
+			return g_strdup_printf("%d %s", size, size_str[size_index]);
+		} else {
+			return g_strdup_printf("%.2f %s", size_mag, size_str[size_index]);
+		}
 	}
 }