adasd
This commit is contained in:
@@ -58,7 +58,9 @@ final class AnalyticsService
|
|||||||
$includeFullDetail = !$fullLatestOnly || $index === $lastIndex;
|
$includeFullDetail = !$fullLatestOnly || $index === $lastIndex;
|
||||||
while (isset($payouts[$payoutIndex])) {
|
while (isset($payouts[$payoutIndex])) {
|
||||||
$payoutTs = $this->utcTimestamp((string) ($payouts[$payoutIndex]['payout_at'] ?? ''));
|
$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;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user