summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJosh Soref <jsoref@users.noreply.github.com>2021-04-14 05:26:24 -0400
committerGitHub <noreply@github.com>2021-04-14 12:26:24 +0300
commit523ba27649367a7673dd448c261a696628892733 (patch)
treed9776d1632ee200f70cb88682945fde9ad87b07a
parentd07f248e7554f8c20e62ad8c65fbd8aaab67418f (diff)
Spelling health (#10916)
-rw-r--r--health/health.c4
-rw-r--r--health/health_log.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/health/health.c b/health/health.c
index 0793100a6a..a6815f3c57 100644
--- a/health/health.c
+++ b/health/health.c
@@ -523,7 +523,7 @@ static inline int rrdcalc_isrunnable(RRDCALC *rc, time_t now, time_t *next_run)
return 1;
}
-static inline int check_if_resumed_from_suspention(void) {
+static inline int check_if_resumed_from_suspension(void) {
static usec_t last_realtime = 0, last_monotonic = 0;
usec_t realtime = now_realtime_usec(), monotonic = now_monotonic_usec();
int ret = 0;
@@ -649,7 +649,7 @@ void *health_main(void *ptr) {
time_t next_run = now + min_run_every;
RRDCALC *rc;
- if (unlikely(check_if_resumed_from_suspention())) {
+ if (unlikely(check_if_resumed_from_suspension())) {
apply_hibernation_delay = 1;
info("Postponing alarm checks for %ld seconds, because it seems that the system was just resumed from suspension.",
diff --git a/health/health_log.c b/health/health_log.c
index 3205f5920b..5cdaf69cb9 100644
--- a/health/health_log.c
+++ b/health/health_log.c
@@ -301,7 +301,7 @@ static inline ssize_t health_alarm_log_read(RRDHOST *host, FILE *fp, const char
continue;
}
- // check for a possible host missmatch
+ // check for a possible host mismatch
//if(strcmp(pointers[1], host->hostname))
// error("HEALTH [%s]: line %zu of file '%s' provides an alarm for host '%s' but this is named '%s'.", host->hostname, line, filename, pointers[1], host->hostname);