diff options
Diffstat (limited to 'Software/Visual_Studio/Tango.Telemetry/Mappers/JobRunMapper.cs')
| -rw-r--r-- | Software/Visual_Studio/Tango.Telemetry/Mappers/JobRunMapper.cs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Software/Visual_Studio/Tango.Telemetry/Mappers/JobRunMapper.cs b/Software/Visual_Studio/Tango.Telemetry/Mappers/JobRunMapper.cs index 4a08f9645..8d8023c95 100644 --- a/Software/Visual_Studio/Tango.Telemetry/Mappers/JobRunMapper.cs +++ b/Software/Visual_Studio/Tango.Telemetry/Mappers/JobRunMapper.cs @@ -79,10 +79,13 @@ namespace Tango.Telemetry.Mappers tRun.Thread = _rmls.FirstOrDefault(x => x.Guid == run.RmlGuid)?.FinalName; tRun.NumberOfUnits = Math.Max(run.NumberOfUnits, 1); + //Infer Number of Spools. + tRun.NumberOfSpools = run.MachineTypeEnum == MachineTypes.Eureka ? 4 : 1; + //What the user entered including white gaps leaving out spools and number of units. tRun.LogicalLength = run.JobLogicalLength; - //What the user entered talking into account white gaps, spools and number of units. + //What the user entered taking into account white gaps, spools and number of units. //(White gaps between units is not calculated here and is added further here when the JobFile is ready with the inter-segment length). tRun.ActualLength = (run.MachineTypeEnum == MachineTypes.Eureka ? run.JobLogicalLength * 4 : run.JobLogicalLength) * tRun.NumberOfUnits; |
