bucket date
This commit is contained in:
1 parent
174665e70a
commit
11c95f885d
8 files changed
+24
-13
No files matched your search
@@ -28,7 +28,7 @@ export const MonitorStatBoxes = ({
|
||||
const timeSinceLastFailure =
|
||||
timeOfLastFailure > 0
|
||||
? Date.now() - timeOfLastFailure
|
||||
: Date.now() - new Date(monitorStats?.createdAt);
|
||||
: Date.now() - new Date(monitorStats?.createdAt || 0).getTime();
|
||||
|
||||
// Determine time since last check
|
||||
const timeOfLastCheck = monitorStats?.lastCheckTimestamp || 0;
|
||||
|
||||
Reference in new issue
Block a user