예제 #1
0
        public void UpdateStatus(Leaf currentLeaf)
        {
            var isHigherPatternThanBefore   = (currentLeaf.PatternId() + 1) >= statisticsGenerator.HighestChunkCalculated;
            var isLastPattern               = currentLeaf.PatternId() == statisticsGenerator.TotalAmountOfChunks - 1;
            var patternIdQualifiesForUpdate = currentLeaf.PatternId() % updateIntervalMod == 0;

            if ((!isHigherPatternThanBefore || !patternIdQualifiesForUpdate) && !isLastPattern)
            {
                return;
            }
            statusUpdater.SendUpdate();
            keySearcher.GuiLogMessage(Resources.Updating_status_in_DHT, NotificationLevel.Info);
        }
예제 #2
0
 public void Run()
 {
     _statusUpdater.SendUpdate(PipelineStatus.Running);
     _rootTaskGroup.Run();
 }