Add mountpoint as fourth metric

This commit is contained in:
antoplt committed 2025-11-18 14:38:03 +01:00
1 parent 4042d34585
commit 1b4edf16fb
3 files changed
+23 -4

No files matched your search

@@ -10,7 +10,7 @@ import { useTheme } from "@emotion/react";
import { useTranslation } from "react-i18next";
const Gauges = ({ isLoading = false, monitor }) => {
const { decimalToPercentage, formatBytes, formatDeviceName } = useHardwareUtils();
const { decimalToPercentage, formatBytes, formatDeviceName, formatMountpoint } = useHardwareUtils();
const theme = useTheme();
const { t } = useTranslation();
@@ -57,6 +57,8 @@ const Gauges = ({ isLoading = false, monitor }) => {
valueTwo: formatBytes(disk.total_bytes, true),
metricThree: t("device"),
valueThree: formatDeviceName(disk.device),
metricFour: t("mountpoint"),
valueFour: formatMountPoint(disk.mountpoint),
})),
];