Validator whitespace fixes

This commit is contained in:
Lorenz Meier
2016-12-17 13:21:58 +01:00
committed by Lorenz Meier
parent bf8a9a3d09
commit 00dbffe11d
+3 -3
View File
@@ -124,7 +124,7 @@ float
DataValidator::confidence(uint64_t timestamp)
{
float ret = 1.0f;
/* check if we have any data */
if (_time_last == 0) {
_error_mask |= ERROR_FLAG_NO_DATA;
@@ -154,13 +154,13 @@ DataValidator::confidence(uint64_t timestamp)
} else {
_error_mask = ERROR_FLAG_NO_ERROR;
}
/* no critical errors */
if (ret > 0.0f) {
/* return local error density for last N measurements */
ret = 1.0f - (_error_density / ERROR_DENSITY_WINDOW);
}
return ret;
}