mirror of
https://github.com/DI0IK/homepage-plus.git
synced 2025-07-06 20:28:48 +00:00
Fix: use 'real_usage' for synology diskstation memory stats (#4880)
This commit is contained in:
parent
f7def5c2ce
commit
03cd98b1d6
1 changed files with 3 additions and 2 deletions
|
@ -43,8 +43,9 @@ export default function Component({ service }) {
|
|||
// utilization info
|
||||
const { cpu, memory } = utilizationData.data;
|
||||
const cpuLoad = parseFloat(cpu.user_load) + parseFloat(cpu.system_load);
|
||||
const memoryUsage =
|
||||
100 - (100 * (parseFloat(memory.avail_real) + parseFloat(memory.cached))) / parseFloat(memory.total_real);
|
||||
const memoryUsage = memory.real_usage
|
||||
? parseFloat(memory.real_usage)
|
||||
: 100 - (100 * (parseFloat(memory.avail_real) + parseFloat(memory.cached))) / parseFloat(memory.total_real);
|
||||
|
||||
return (
|
||||
<Container service={service}>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue