Fix wrong count of paramteres (#10564)
Fix wrong count of paramteres (#10564)
thiagoftsm committed
Mar 12, 2021 at 14:22 UTC
fe0c96e1c392cf48d8ec51f49aaec659f1d2017d
1 file changed
+2
-2
health/health_log.c
+2
-2
@@ -213,8 +213,8 @@ static inline ssize_t health_alarm_log_read(RRDHOST *host, FILE *fp, const char
213
if(likely(*pointers[0] == 'U' || *pointers[0] == 'A')) {
214
ALARM_ENTRY *ae = NULL;
215
216
- if(entries < 26) {
217
- error("HEALTH [%s]: line %zu of file '%s' should have at least 26 entries, but it has %d. Ignoring it.", host->hostname, line, filename, entries);
216
+ if(entries < 27) {
217
+ error("HEALTH [%s]: line %zu of file '%s' should have at least 27 entries, but it has %d. Ignoring it.", host->hostname, line, filename, entries);
218
errored++;
219
continue;
220
}