mirror of
https://git.undefined-dev.fr/Blendman974/faceclaw.git
synced 2026-11-29 13:03:11 +00:00
Add health metrics widget to Glanceboard
This commit is contained in:
1 parent
27a5fe47ef
commit
3a61ad3842
9 files changed
+161
-3
No files matched your search
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user