Author: alanmc
Date: 2006-10-19 09:39:39 -0400 (Thu, 19 Oct 2006)
New Revision: 66818
Modified:
trunk/bitsharp/src/TestClient/main.cs
Log:
Displaying a little more info in the testclient
Modified: trunk/bitsharp/src/TestClient/main.cs
===================================================================
--- trunk/bitsharp/src/TestClient/main.cs 2006-10-19 12:13:41 UTC (rev
66817)
+++ trunk/bitsharp/src/TestClient/main.cs 2006-10-19 13:39:39 UTC (rev
66818)
@@ -118,8 +118,10 @@
Debug.WriteLine("Number of seeds: " +
manager.Seeds());
Debug.WriteLine("Number of leechs: " +
manager.Leechs());
Debug.WriteLine("Total available: " +
manager.AvailablePeers);
- Debug.WriteLine("Downloaded: " +
manager.DataBytesDownloaded / 1024);
- Debug.WriteLine("Uploaded: " +
manager.DataBytesUploaded / 1024);
+ Debug.WriteLine("Downloaded: " +
manager.DataBytesDownloaded / 1024.0);
+ Debug.WriteLine("Uploaded: " +
manager.DataBytesUploaded / 1024.0);
+ Debug.WriteLine("Protocol Download:" +
manager.ProtocolBytesDownloaded / 1024.0);
+ Debug.WriteLine("Protocol Upload: " +
manager.ProtocolBytesUploaded / 1024.0);
Debug.WriteLine("Tracker Status: " +
manager.TrackerManager.CurrentTracker.State.ToString());
Debug.WriteLine("\n");
}
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches