From d2349b3cb6c3a067f58944e1826598a25c0ce322 Mon Sep 17 00:00:00 2001 From: Roy Ben Shabat Date: Mon, 18 Nov 2024 12:18:06 +0200 Subject: Fixed stats display on ms as well as fse. --- .../Tango.MachineStudio.Statistics/Models/JobRunModel.cs | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Statistics') diff --git a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Statistics/Models/JobRunModel.cs b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Statistics/Models/JobRunModel.cs index 184135c40..38005f2bc 100644 --- a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Statistics/Models/JobRunModel.cs +++ b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Statistics/Models/JobRunModel.cs @@ -60,9 +60,17 @@ namespace Tango.MachineStudio.Statistics.Models } } + public double LogicalLengthMeters + { + get + { + return (IsEureka ? JobRun.JobLogicalLength * 4 : JobRun.JobLogicalLength); + } + } + public double ActualLength { - get { return JobRun.JobLogicalLength; } + get { return LogicalLengthMeters * JobRun.NumberOfUnits; } } public void Init() -- cgit v1.3.1