aboutsummaryrefslogtreecommitdiffstats
path: root/netwatch-notify
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2020-03-05 08:15:36 +0100
committerGravatar Christian Hesse <mail@eworm.de>2020-03-05 08:15:36 +0100
commitf90c59e4fb4ce7d7b71ccfd01755b7b7212fc9d1 (patch)
tree38a7a9121d6a1acb139f348459a01bd75cfcfa28 /netwatch-notify
parent792eba8465291b2ae1f372c41b9c833bf5d7a340 (diff)
netwatch-notify: properly initialize default values
Diffstat (limited to 'netwatch-notify')
-rw-r--r--netwatch-notify2
1 files changed, 1 insertions, 1 deletions
diff --git a/netwatch-notify b/netwatch-notify
index df13f4f..04e3d30 100644
--- a/netwatch-notify
+++ b/netwatch-notify
@@ -18,7 +18,7 @@
:local HostName ([ $ParseKeyValueStore ($HostVal->"comment") ]->"hostname");
:if ([ :typeof ($NetwatchNotify->$HostName) ] = "nothing") do={
- :set ($NetwatchNotify->$HostName) [ :toarray "" ];
+ :set ($NetwatchNotify->$HostName) { "count"=0; "notified"=false };
}
:if ($HostVal->"status" = "up") do={