mirror of
https://github.com/louislam/uptime-kuma.git
synced 2025-07-18 23:34:04 +02:00
added comment on when it can happen
This commit is contained in:
parent
71b73e979f
commit
38a4b60a5c
1 changed files with 3 additions and 0 deletions
|
@ -922,6 +922,9 @@ class UptimeCalculator {
|
|||
}
|
||||
|
||||
// Check if we're within a valid bucket
|
||||
// currentBucketIndex can be >= buckets.length when we have data points
|
||||
// that are newer than our last bucket's end time (e.g., very recent data
|
||||
// that falls outside our calculated time range)
|
||||
if (currentBucketIndex < buckets.length) {
|
||||
const bucket = buckets[currentBucketIndex];
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue