This commit is contained in:
jomjol
2020-08-14 07:18:12 +02:00
parent 8d64e28b1a
commit d30e8b29bc
2 changed files with 4 additions and 0 deletions

View File

@@ -284,12 +284,16 @@ bool ClassFlowPostProcessing::doFlow(string zwtime)
{
error = "Negative Rate - Returned old value - read value: " + zwvalue;
Value = PreValue;
stream << std::fixed << std::setprecision(AnzahlNachkomma) << Value;
zwvalue = stream.str();
}
if (useMaxRateValue && (abs(Value - PreValue) > MaxRateValue))
{
error = "Rate too high - Returned old value - read value: " + zwvalue;
Value = PreValue;
stream << std::fixed << std::setprecision(AnzahlNachkomma) << Value;
zwvalue = stream.str();
}
ReturnValue = zwvalue;

Binary file not shown.