mirror of
https://github.com/jomjol/AI-on-the-edge-device.git
synced 2025-12-08 20:46:52 +03:00
replace division by a multiplication (#1352)
Co-authored-by: CaCO3 <caco@ruinelli.ch>
This commit is contained in:
@@ -259,7 +259,7 @@ bool ClassFlowMQTT::doFlow(string zwtime)
|
|||||||
|
|
||||||
std::string resultRatePerTimeUnit;
|
std::string resultRatePerTimeUnit;
|
||||||
if (getTimeUnit() == "h") { // Need conversion to be per hour
|
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
|
else { // Keep per minute
|
||||||
resultRatePerTimeUnit = resultrate;
|
resultRatePerTimeUnit = resultrate;
|
||||||
|
|||||||
Reference in New Issue
Block a user