Add health metrics widget to Glanceboard

This commit is contained in:
James Babcock committed 2026-09-17 21:30:05 -07:00
1 parent 27a5fe47ef
commit 3a61ad3842
9 files changed
+161 -3

No files matched your search

+1 -1
View File
@@ -95,7 +95,7 @@ export function rollupSeries(
return points;
}
function nextBucketStart(startMs: number, granularity: Granularity): number {
export function nextBucketStart(startMs: number, granularity: Granularity): number {
const date = new Date(startMs);
if (granularity === "hour") date.setHours(date.getHours() + 1, 0, 0, 0);
else date.setDate(date.getDate() + 1);