We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1aace91 commit 7ce91c9Copy full SHA for 7ce91c9
library/Eventtracker/Engine/Downtime/DowntimeStore.php
@@ -217,7 +217,9 @@ protected static function safeNow(?int $now): int
217
if ($now === null) {
218
$now = Time::unixMilli();
219
}
220
- if ($now === self::$lastNow) {
+ if ($now < self::$lastNow && self::$lastNow - $now < 300_000) {
221
+ $now = self::$lastNow + 1;
222
+ } elseif ($now === self::$lastNow) {
223
$now += 1;
224
225
0 commit comments