Add mountpoint as fourth metric
This commit is contained in:
1 parent
4042d34585
commit
1b4edf16fb
3 files changed
+23
-4
No files matched your search
@@ -128,6 +128,14 @@ const useHardwareUtils = () => {
|
||||
);
|
||||
};
|
||||
|
||||
const formatMountpoint = (mountpoint) => {
|
||||
return (
|
||||
<>
|
||||
{String(mountpoint)}
|
||||
</>
|
||||
)
|
||||
}
|
||||
|
||||
/**
|
||||
* Converts a decimal value to a percentage
|
||||
*
|
||||
@@ -187,6 +195,7 @@ const useHardwareUtils = () => {
|
||||
return {
|
||||
formatBytes,
|
||||
formatDeviceName,
|
||||
formatMountpoint,
|
||||
decimalToPercentage,
|
||||
buildTemps,
|
||||
getDimensions,
|
||||
|
||||
Reference in new issue
Block a user