Refactorization : BenchControl -> Rig

This commit is contained in:
Milan Hanajik
2021-03-05 16:12:24 +01:00
parent 84c8ec26b6
commit 6cf3bd6160
1461 changed files with 6330 additions and 6330 deletions
+3 -3
View File
@@ -32,7 +32,7 @@ namespace TBF.UiBridge
cumulativeSumsOfEstimates = new int[(int)Config.Entities.Progress.Count];
SetEstimatedTimes(estTime);
currentPhaseStartTime = BenchControl.StateMachine.Time;
currentPhaseStartTime = Rig.StateMachine.Time;
currentPhase = Config.Entities.Progress.JustStarted;
}
@@ -63,13 +63,13 @@ namespace TBF.UiBridge
if (phase != currentPhase)
{
currentPhase = phase;
currentPhaseStartTime = BenchControl.StateMachine.Time;
currentPhaseStartTime = Rig.StateMachine.Time;
}
Phase = phase;
int phaseNr = (int)phase;
int currentPhaseTime = Math.Min(BenchControl.StateMachine.Time - currentPhaseStartTime, estimatedTime[phaseNr]);
int currentPhaseTime = Math.Min(Rig.StateMachine.Time - currentPhaseStartTime, estimatedTime[phaseNr]);
int currentTestTime = currentPhaseTime + ((phaseNr == 0) ? 0 : cumulativeSumsOfEstimates[phaseNr - 1]);
int add10pct = cumulativeSumsOfEstimates[(int)Config.Entities.Progress.Count - 1] / 9;