From 96d473cfe8128908a4948d93d674823f75601b49 Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Wed, 15 Jul 2020 14:43:26 +0200 Subject: log-forward: remember the last id only --- log-forward | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/log-forward b/log-forward index 8f7bc1f..068ffb0 100644 --- a/log-forward +++ b/log-forward @@ -28,7 +28,7 @@ $WaitFullyConnected; :foreach Message in=[ / log find where !(topics~$LogForwardFilter) ] do={ :set MessageVal [ / log get $Message ]; - :if ($LogForwardLast = $MessageVal) do={ + :if ($LogForwardLast = ($MessageVal->".id")) do={ :set Messages ""; :set Count 0; } else={ @@ -43,5 +43,5 @@ $WaitFullyConnected; ("The log on " . $Identity . " contains these " . $Count . " messages after " . \ [ / system resource get uptime ] . " uptime.\n" . $Messages); - :set LogForwardLast $MessageVal; + :set LogForwardLast ($MessageVal->".id"); } -- cgit v1.2.3-70-g09d2