Author: alanmc
Date: 2007-08-30 09:14:14 -0400 (Thu, 30 Aug 2007)
New Revision: 85042
Modified:
trunk/mono-curses/monotorrent.cs
Log:
those fields are in kilobytes, not bytes
Modified: trunk/mono-curses/monotorrent.cs
===================================================================
--- trunk/mono-curses/monotorrent.cs 2007-08-30 13:05:58 UTC (rev 85041)
+++ trunk/mono-curses/monotorrent.cs 2007-08-30 13:14:14 UTC (rev 85042)
@@ -553,10 +553,10 @@
status_peers.Text = String.Format ("{0} ({1}/{2})",
tm.Peers.Available, tm.Peers.Seeds, tm.Peers.Leechs);
status_tracker.Text =
tm.TrackerManager.TrackerTiers[0].Trackers[0].State.ToString ();
- status_up.Text = String.Format ("{0,14:N0}",
tm.Monitor.DataBytesUploaded / 1024.0);
- status_up_speed.Text = String.Format ("{0:0.0}",
tm.Monitor.UploadSpeed / 1024);
- status_down.Text = String.Format ("{0,14:N0}",
tm.Monitor.DataBytesDownloaded / 1024.0);
- status_down_speed.Text = String.Format ("{0:0.0}",
tm.Monitor.DownloadSpeed / 1024);
+ status_up.Text = String.Format ("{0,14:N0}",
tm.Monitor.DataBytesUploaded);
+ status_up_speed.Text = String.Format ("{0:0.0}",
tm.Monitor.UploadSpeed);
+ status_down.Text = String.Format ("{0,14:N0}",
tm.Monitor.DataBytesDownloaded);
+ status_down_speed.Text = String.Format ("{0:0.0}",
tm.Monitor.DownloadSpeed);
torrent_name.Text = tm.Torrent.Name;
}
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches