From ba8794c3717f77f519fbeede36ed46fcfdb0f7a0 Mon Sep 17 00:00:00 2001 From: Lars Gebhardt-Kusche Date: Mon, 22 Jun 2026 01:03:32 +0200 Subject: [PATCH] adasd --- modules/mining-checker/src/Domain/AnalyticsService.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/mining-checker/src/Domain/AnalyticsService.php b/modules/mining-checker/src/Domain/AnalyticsService.php index c3e5e259..1bf3e43c 100644 --- a/modules/mining-checker/src/Domain/AnalyticsService.php +++ b/modules/mining-checker/src/Domain/AnalyticsService.php @@ -58,7 +58,9 @@ final class AnalyticsService $includeFullDetail = !$fullLatestOnly || $index === $lastIndex; while (isset($payouts[$payoutIndex])) { $payoutTs = $this->utcTimestamp((string) ($payouts[$payoutIndex]['payout_at'] ?? '')); - if ($payoutTs <= 0 || $payoutTs > $measuredTs) { + // A transfer with the exact same timestamp belongs to the next interval, + // otherwise the current measurement is inflated and the following rate turns negative. + if ($payoutTs <= 0 || $payoutTs >= $measuredTs) { break; }