correct timeSinceLastCheck and uptimePercentage

This commit is contained in:
Alex Holliday committed 2025-03-07 11:15:19 -08:00
1 parent 94f4d63e96
commit 353f4a9dd6
1 file changed
+2 -2
@@ -59,7 +59,7 @@ const StatusHeader = ({ monitor, connectionStatus, elementToCapture }) => {
backgroundColor={theme.palette.successSecondary.lowContrast} backgroundColor={theme.palette.successSecondary.lowContrast}
color={theme.palette.success.lowContrast} color={theme.palette.success.lowContrast}
> >
Uptime: {(monitor.totalUptime * 100).toFixed(2)}% Uptime: {(monitor.uptimePercentage * 100).toFixed(2)}%
</Typography> </Typography>
</Stack> </Stack>
<Typography <Typography
@@ -69,7 +69,7 @@ const StatusHeader = ({ monitor, connectionStatus, elementToCapture }) => {
Last updated{" "} Last updated{" "}
<LastUpdate <LastUpdate
suffix={"seconds ago"} suffix={"seconds ago"}
lastUpdateTime={monitor.timeSinceLastCheck} lastUpdateTime={monitor?.timeSinceLastCheck}
/> />
</Typography> </Typography>
</Stack> </Stack>