From 640cb811195579a3444d53531160f2bbb88e2d55 Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Fri, 14 Oct 2022 22:39:21 +0200 Subject: 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. --- netwatch-notify | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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={ -- cgit v1.2.3-54-g00ecf