summaryrefslogtreecommitdiffstats
path: root/health
diff options
context:
space:
mode:
authorIlya Mashchenko <ilya@netdata.cloud>2021-12-07 15:31:34 +0300
committerGitHub <noreply@github.com>2021-12-07 15:31:34 +0300
commit35a8e54020c15458bd2e60672e66ec1f51618a89 (patch)
treee0eba36756e78cd51f44fed152935fc1f0623cd4 /health
parent00b6b7ea49d58694c07503d8e97bb9138f9034e6 (diff)
fix(health): used_swap alarm calc (#11868)
Diffstat (limited to 'health')
-rw-r--r--health/health.d/swap.conf2
1 files changed, 1 insertions, 1 deletions
diff --git a/health/health.d/swap.conf b/health/health.d/swap.conf
index 03c319320d..d30c74ceec 100644
--- a/health/health.d/swap.conf
+++ b/health/health.d/swap.conf
@@ -25,7 +25,7 @@ component: Memory
component: Memory
os: linux freebsd
hosts: *
- calc: ($used + $free) > 0 ? ($used * 100 / ($used + $free)) : 0
+ calc: (($used + $free) > 0) ? ($used * 100 / ($used + $free)) : 0
units: %
every: 10s
warn: $this > (($status >= $WARNING) ? (80) : (90))