diff options
author | Christian Hesse <mail@eworm.de> | 2020-07-15 14:43:26 +0200 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2020-07-15 14:43:26 +0200 |
commit | 96d473cfe8128908a4948d93d674823f75601b49 (patch) | |
tree | 0db41a509e881f42305a68b1759458298730804c | |
parent | 6bce0a4b6a3d1ee48a1e4b4f40652ae490fb288c (diff) |
log-forward: remember the last id only
-rw-r--r-- | log-forward | 4 |
1 files 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"); } |