DmitrMakeev commited on
Commit
186c013
·
verified ·
1 Parent(s): 1969012

Update online.html

Browse files
Files changed (1) hide show
  1. online.html +4 -4
online.html CHANGED
@@ -655,10 +655,10 @@ document.getElementById("but_sliv").addEventListener("click", function() {
655
  dataHistory.times.push(data.time);
656
  dataHistory.ph.push(parseFloat(data.ph) || 0);
657
  dataHistory.ec.push(parseFloat(data.ec) || 0);
658
- // Для насосов сохраняем предыдущее значение, если новое не число
659
- dataHistory.ec_A_eep.push(isNaN(parseFloat(data.ec_A_eep)) ? (dataHistory.ec_A_eep.length > 0 ? dataHistory.ec_A_eep[dataHistory.ec_A_eep.length - 1] : 0) : parseFloat(data.ec_A_eep));
660
- dataHistory.ec_B_eep.push(isNaN(parseFloat(data.ec_B_eep)) ? (dataHistory.ec_B_eep.length > 0 ? dataHistory.ec_B_eep[dataHistory.ec_B_eep.length - 1] : 0) : parseFloat(data.ec_B_eep));
661
- dataHistory.ec_C_eep.push(isNaN(parseFloat(data.ec_C_eep)) ? (dataHistory.ec_C_eep.length > 0 ? dataHistory.ec_C_eep[dataHistory.ec_C_eep.length - 1] : 0) : parseFloat(data.ec_C_eep));
662
  dataHistory.tS.push(parseFloat(data.tS) || 0);
663
  dataHistory.tA.push(parseFloat(data.tA) || 0);
664
  dataHistory.hDm.push(parseFloat(data.hDm) || 0);
 
655
  dataHistory.times.push(data.time);
656
  dataHistory.ph.push(parseFloat(data.ph) || 0);
657
  dataHistory.ec.push(parseFloat(data.ec) || 0);
658
+ dataHistory.ec_A_eep.push(parseFloat(data.ec_A_eep) || 0);
659
+ dataHistory.ec_B_eep.push(parseFloat(data.ec_B_eep) || 0);
660
+ // Для ec_C_eep заменяем "l" на 1
661
+ dataHistory.ec_C_eep.push(data.ec_C_eep === "l" ? 1 : (parseFloat(data.ec_C_eep) || 0));
662
  dataHistory.tS.push(parseFloat(data.tS) || 0);
663
  dataHistory.tA.push(parseFloat(data.tA) || 0);
664
  dataHistory.hDm.push(parseFloat(data.hDm) || 0);