fix uptime percentage
This commit is contained in:
1 parent
6578d7e78a
commit
3595e02cae
2 files changed
+2
-4
No files matched your search
@@ -30,7 +30,6 @@ const StatusHeader = ({ monitor, connectionStatus, elementToCapture }) => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
let bgColor = COLOR_MAP[connectionStatus];
|
let bgColor = COLOR_MAP[connectionStatus];
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<ColContainer backgroundColor={bgColor}>
|
<ColContainer backgroundColor={bgColor}>
|
||||||
<Stack
|
<Stack
|
||||||
@@ -61,7 +60,8 @@ 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}
|
||||||
>
|
>
|
||||||
{t("distributedUptimeDetailsStatusHeaderUptime")} {(monitor.totalUptime * 100).toFixed(2)}%
|
{t("distributedUptimeDetailsStatusHeaderUptime")}{" "}
|
||||||
|
{(monitor.uptimePercentage * 100).toFixed(2)}%
|
||||||
</Typography>
|
</Typography>
|
||||||
</Stack>
|
</Stack>
|
||||||
<Typography
|
<Typography
|
||||||
|
|||||||
@@ -24,7 +24,6 @@ const PublicStatus = () => {
|
|||||||
const [isDeleteOpen, setIsDeleteOpen] = useState(false);
|
const [isDeleteOpen, setIsDeleteOpen] = useState(false);
|
||||||
// Utils
|
// Utils
|
||||||
const theme = useTheme();
|
const theme = useTheme();
|
||||||
const isAdmin = useIsAdmin();
|
|
||||||
const location = useLocation();
|
const location = useLocation();
|
||||||
const navigate = useNavigate();
|
const navigate = useNavigate();
|
||||||
|
|
||||||
@@ -33,7 +32,6 @@ const PublicStatus = () => {
|
|||||||
const [deleteStatusPage, isDeleting] = useStatusPageDelete(fetchStatusPage, url);
|
const [deleteStatusPage, isDeleting] = useStatusPageDelete(fetchStatusPage, url);
|
||||||
|
|
||||||
// Setup
|
// Setup
|
||||||
const currentPath = location.pathname;
|
|
||||||
let sx = { paddingLeft: theme.spacing(20), paddingRight: theme.spacing(20) };
|
let sx = { paddingLeft: theme.spacing(20), paddingRight: theme.spacing(20) };
|
||||||
let link = undefined;
|
let link = undefined;
|
||||||
const isPublic = location.pathname.startsWith("/status/uptime/public");
|
const isPublic = location.pathname.startsWith("/status/uptime/public");
|
||||||
|
|||||||
Reference in new issue
Block a user