Przeglądaj źródła

replace division by a multiplication (#1352)

Co-authored-by: CaCO3 <caco@ruinelli.ch>
CaCO3 3 lat temu
rodzic
commit
880d9eae20

+ 1 - 1
code/components/jomjol_flowcontroll/ClassFlowMQTT.cpp

@@ -259,7 +259,7 @@ bool ClassFlowMQTT::doFlow(string zwtime)
                 
                 std::string resultRatePerTimeUnit;
                 if (getTimeUnit() == "h") { // Need conversion to be per hour
-                    resultRatePerTimeUnit = resultRatePerTimeUnit = to_string((*NUMBERS)[i]->FlowRateAct / 60); // per minutes => per hour
+                    resultRatePerTimeUnit = resultRatePerTimeUnit = to_string((*NUMBERS)[i]->FlowRateAct * 60); // per minutes => per hour
                 }
                 else { // Keep per minute
                     resultRatePerTimeUnit = resultrate;