unit conversion
This commit is contained in:
@ -1378,7 +1378,8 @@ class SystemHealthMonitor:
|
|||||||
|
|
||||||
# Get usage percentage directly from parts[4]
|
# Get usage percentage directly from parts[4]
|
||||||
usage_percent = float(parts[4].rstrip('%'))
|
usage_percent = float(parts[4].rstrip('%'))
|
||||||
|
size_value = self._convert_size_to_bytes(parts[1]) # For total size
|
||||||
|
used_value = self._convert_size_to_bytes(parts[2]) # For used size
|
||||||
filesystem = {
|
filesystem = {
|
||||||
'mountpoint': mountpoint,
|
'mountpoint': mountpoint,
|
||||||
'total': parts[1],
|
'total': parts[1],
|
||||||
|
|||||||
Reference in New Issue
Block a user