diff options
author | Ilya Mashchenko <ilya@netdata.cloud> | 2021-12-07 15:31:34 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-07 15:31:34 +0300 |
commit | 35a8e54020c15458bd2e60672e66ec1f51618a89 (patch) | |
tree | e0eba36756e78cd51f44fed152935fc1f0623cd4 /health | |
parent | 00b6b7ea49d58694c07503d8e97bb9138f9034e6 (diff) |
fix(health): used_swap alarm calc (#11868)
Diffstat (limited to 'health')
-rw-r--r-- | health/health.d/swap.conf | 2 |
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)) |