Refactorization : BenchControl -> Rig
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user