This commit is contained in:
jomjol
2020-08-10 22:03:47 +02:00
parent d177350b69
commit b8fa23b1a8
4 changed files with 13 additions and 11 deletions

View File

@@ -271,13 +271,13 @@ bool ClassFlowPostProcessing::doFlow(string zwtime)
if ((!AllowNegativeRates) && (Value < PreValue))
{
error = "Negative Rate - Return old value - " + zwvalue;
error = "Negative Rate - Returned old value - read value: " + zwvalue;
Value = PreValue;
}
if (useMaxRateValue && ((Value - PreValue) > MaxRateValue))
if (useMaxRateValue && (abs(Value - PreValue) > MaxRateValue))
{
error = "Negative Rate - Return old value - " + zwvalue;
error = "Rate too high - Returned old value - read value: " + zwvalue;
Value = PreValue;
}