From bd8577b32ed5fe83e7cdd5d3109fbebe7a87a038 Mon Sep 17 00:00:00 2001 From: Samuele Locatelli Date: Tue, 29 Sep 2020 12:37:23 +0200 Subject: [PATCH] Fix calcolo fine stimata (sec --> minuti) --- Thermo.Active.NC/NcAdapter.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Thermo.Active.NC/NcAdapter.cs b/Thermo.Active.NC/NcAdapter.cs index 5e0af795..8a2df760 100644 --- a/Thermo.Active.NC/NcAdapter.cs +++ b/Thermo.Active.NC/NcAdapter.cs @@ -1516,7 +1516,7 @@ namespace Thermo.Active.NC if (currentProdPanel.NumTarget > 0) { // 2020.09.03 uso dati da ricetta corrente... stimata con EWMA, in SECONDI! - currentProdPanel.StimaDurata = Math.Round((currentProdPanel.NumTarget - currentProdPanel.NumDone) * lastCycle, 2); + currentProdPanel.StimaDurata = Math.Round((currentProdPanel.NumTarget - currentProdPanel.NumDone) * lastCycle, 2) / 60; } // se stima negativa (+ pezzi di quanti richiesti...) --> ZERO! currentProdPanel.StimaDurata = currentProdPanel.StimaDurata < 0 ? 0 : currentProdPanel.StimaDurata; @@ -2541,7 +2541,7 @@ namespace Thermo.Active.NC //checkCondition = (currRecipe[item.Label].Status.HasError && currRecipe[item.Label].Status.Visible); checkCondition = (currRecipe[item.Label].Status.HasError); #else - checkCondition = (currRecipe[item.Label].Status.HasError); + checkCondition = (currRecipe[item.Label].Status.HasError); #endif // 2020.07.29 - controllo condizione secondo status debug/release... if (checkCondition)