From 6e781afd41efa906ee9f88dc5e079cf38fc9b91f Mon Sep 17 00:00:00 2001 From: Alexander Skjold Jasper Date: Fri, 8 Aug 2025 13:13:13 +0200 Subject: [PATCH] Fix an issue where current statistics were not updated on HighWaterStatus.Changed. --- src/JasperFx.Events/Daemon/HighWater/HighWaterAgent.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/JasperFx.Events/Daemon/HighWater/HighWaterAgent.cs b/src/JasperFx.Events/Daemon/HighWater/HighWaterAgent.cs index ebd0a62..31a3050 100644 --- a/src/JasperFx.Events/Daemon/HighWater/HighWaterAgent.cs +++ b/src/JasperFx.Events/Daemon/HighWater/HighWaterAgent.cs @@ -201,7 +201,7 @@ private async Task markProgressAsync(HighWaterStatistics statistics, TimeSpan de // don't bother sending updates if the current position is 0 if (statistics.CurrentMark == 0 || statistics.CurrentMark == _tracker.HighWaterMark) { - if (status == HighWaterStatus.CaughtUp) + if (status != HighWaterStatus.Stale) { // Update the current stats if the status is not stale // This ensures the current stats timestamp is up-to-date, and not just set to the time of the last changed