Author: alanmc
Date: 2006-11-17 15:30:22 -0500 (Fri, 17 Nov 2006)
New Revision: 68092

Modified:
   
trunk/bitsharp/src/MonoTorrent.Interface/src/MonoTorrent.Interface/Helpers/Formatter.cs
Log:
Formatter will now properly format download/upload speed when it is in the 
bytes/second range

Modified: 
trunk/bitsharp/src/MonoTorrent.Interface/src/MonoTorrent.Interface/Helpers/Formatter.cs
===================================================================
--- 
trunk/bitsharp/src/MonoTorrent.Interface/src/MonoTorrent.Interface/Helpers/Formatter.cs
     2006-11-17 20:30:21 UTC (rev 68091)
+++ 
trunk/bitsharp/src/MonoTorrent.Interface/src/MonoTorrent.Interface/Helpers/Formatter.cs
     2006-11-17 20:30:22 UTC (rev 68092)
@@ -30,7 +30,7 @@
         public static string FormatSize(double size)
         {
             if (size < 1 << 10) {
-                return string.Format("{0} B", size);
+                return string.Format("{0:N} B", size);
             }
             if (size < 1 << 20) {
                 return string.Format("{0:N} KB", size / (1 << 10));

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to