fixes #277 - bug: memory utilization always at 99%
This commit is contained in:
parent
a369669537
commit
cc2f5cbc08
@ -14,7 +14,7 @@ export default function useGetSystemResources() {
|
||||
SystemMonitoringService.GET_CURRENT_LOAD_INFORMATION
|
||||
);
|
||||
const ram =
|
||||
(resourceInfor?.mem?.used ?? 0) / (resourceInfor?.mem?.total ?? 1);
|
||||
(resourceInfor?.mem?.active ?? 0) / (resourceInfor?.mem?.total ?? 1);
|
||||
setRam(Math.round(ram * 100));
|
||||
setCPU(Math.round(currentLoadInfor?.currentLoad ?? 0));
|
||||
};
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user