summaryrefslogtreecommitdiffstats
path: root/health
diff options
context:
space:
mode:
authorthiagoftsm <thiagoftsm@gmail.com>2021-03-12 14:22:15 +0000
committerGitHub <noreply@github.com>2021-03-12 14:22:15 +0000
commitfe0c96e1c392cf48d8ec51f49aaec659f1d2017d (patch)
treeee3737009a6444832c35277ac4a676d4e7fafcbc /health
parent42c23f45a228e80c182fc6ea684b92c606c924ee (diff)
Fix wrong count of paramteres (#10564)
Diffstat (limited to 'health')
-rw-r--r--health/health_log.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/health/health_log.c b/health/health_log.c
index de216c89a1..3205f5920b 100644
--- a/health/health_log.c
+++ b/health/health_log.c
@@ -213,8 +213,8 @@ static inline ssize_t health_alarm_log_read(RRDHOST *host, FILE *fp, const char
if(likely(*pointers[0] == 'U' || *pointers[0] == 'A')) {
ALARM_ENTRY *ae = NULL;
- if(entries < 26) {
- 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);
+ if(entries < 27) {
+ 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);
errored++;
continue;
}