diff options
author | Christian Hesse <mail@eworm.de> | 2022-10-14 22:39:21 +0200 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2022-10-14 22:39:21 +0200 |
commit | 640cb811195579a3444d53531160f2bbb88e2d55 (patch) | |
tree | 7e6292bfa2a1c355425b80bbe7ed13c7094d44e9 | |
parent | 493d534706a2180660f83270d907ac4678d4796c (diff) |
netwatch-notify: fix the count...
This broke in commit 6f772e92a616acb15bdef8ab7b7bfdb9d002bfeb
("netwatch-notify: rename array element") where not only the array
element but also the option was renamed.
-rw-r--r-- | netwatch-notify | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/netwatch-notify b/netwatch-notify index f95f426..27e0759 100644 --- a/netwatch-notify +++ b/netwatch-notify @@ -126,7 +126,7 @@ $ScriptLock $0; :set ($Metric->"count-up") 0; :set ($Metric->"parent") ($HostInfo->"parent"); :set ($Metric->"since") ($HostVal->"since"); - :local CountDown [ $IfThenElse ([ :tonum ($HostInfo->"count-down") ] > 0) ($HostInfo->"count-down") 5 ]; + :local CountDown [ $IfThenElse ([ :tonum ($HostInfo->"count") ] > 0) ($HostInfo->"count") 5 ]; :local Parent ($HostInfo->"parent"); :local ParentUp false; :while ([ :len $Parent ] > 0) do={ |