Ignore:
Timestamp:
Oct 23, 2010, 8:44:06 PM (11 years ago)
Author:
Sven Rech
Message:

set reservation timeout to 30 minutes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/CrypPlugins/KeySearcher/P2P/Tree/Leaf.cs

    r1693 r2011  
    1212        internal DateTime LastReservationDate;
    1313        private bool isLeafReserved;
     14        private const int RESERVATIONTIMEOUT = 30;
    1415
    1516        public Leaf(StorageHelper storageHelper, KeyQualityHelper keyQualityHelper, Node parentNode, BigInteger id, string distributedJobIdentifier)
     
    5051        public override void UpdateCache()
    5152        {
    52             var dateFiveMinutesBefore = DateTime.UtcNow.Subtract(new TimeSpan(0, 5, 0));
    53             isLeafReserved = dateFiveMinutesBefore < LastReservationDate;
     53            var dateSomeMinutesBefore = DateTime.UtcNow.Subtract(new TimeSpan(0, RESERVATIONTIMEOUT, 0));
     54            isLeafReserved = dateSomeMinutesBefore < LastReservationDate;
    5455        }
    5556
Note: See TracChangeset for help on using the changeset viewer.