Author: alanmc
Date: 2008-02-17 08:42:44 -0500 (Sun, 17 Feb 2008)
New Revision: 95964

Modified:
   trunk/bitsharp/src/MonoTorrent/MonoTorrent.Tracker/Tracker.cs
Log:
Renamed the Intervals property.

Modified: trunk/bitsharp/src/MonoTorrent/MonoTorrent.Tracker/Tracker.cs
===================================================================
--- trunk/bitsharp/src/MonoTorrent/MonoTorrent.Tracker/Tracker.cs       
2008-02-17 13:37:03 UTC (rev 95963)
+++ trunk/bitsharp/src/MonoTorrent/MonoTorrent.Tracker/Tracker.cs       
2008-02-17 13:42:44 UTC (rev 95964)
@@ -94,7 +94,7 @@
         ///<summary>
         /// Get and set the IntervalAlgorithm used by this Tracker
         ///</summary>
-        public StaticIntervalAlgorithm IntervalAlgorithm
+        public StaticIntervalAlgorithm Intervals
         {
             get { return intervalAlgorithm; }
             set { intervalAlgorithm = value; }
@@ -181,15 +181,15 @@
                 manager.Update(e);
 
                 // Clear any peers who haven't announced within the allowed 
timespan and may be inactive
-                
manager.ClearZombiePeers(DateTime.Now.AddSeconds(-this.IntervalAlgorithm.PeerTimeout));
+                
manager.ClearZombiePeers(DateTime.Now.AddSeconds(-this.Intervals.PeerTimeout));
 
                 // Fulfill the announce request
                 manager.GetPeers(e.Response, e.NumberWanted, 
e.HasRequestedCompact, e.ClientAddress);
             }
 
             // Make sure the values are updated
-            Tracker.interval_value.Number = IntervalAlgorithm.Interval;
-            Tracker.min_interval_value.Number = IntervalAlgorithm.MinInterval;
+            Tracker.interval_value.Number = Intervals.Interval;
+            Tracker.min_interval_value.Number = Intervals.MinInterval;
 
             e.Response.Add(Tracker.interval, Tracker.interval_value);
             e.Response.Add(Tracker.min_interval, Tracker.min_interval_value);

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

Reply via email to