mirror of
https://github.com/karl0ss/homepage.git
synced 2025-04-29 12:03:41 +01:00
Fix: use 'real_usage' for synology diskstation memory stats (#4880)
This commit is contained in:
parent
f7def5c2ce
commit
03cd98b1d6
@ -43,8 +43,9 @@ export default function Component({ service }) {
|
|||||||
// utilization info
|
// utilization info
|
||||||
const { cpu, memory } = utilizationData.data;
|
const { cpu, memory } = utilizationData.data;
|
||||||
const cpuLoad = parseFloat(cpu.user_load) + parseFloat(cpu.system_load);
|
const cpuLoad = parseFloat(cpu.user_load) + parseFloat(cpu.system_load);
|
||||||
const memoryUsage =
|
const memoryUsage = memory.real_usage
|
||||||
100 - (100 * (parseFloat(memory.avail_real) + parseFloat(memory.cached))) / parseFloat(memory.total_real);
|
? parseFloat(memory.real_usage)
|
||||||
|
: 100 - (100 * (parseFloat(memory.avail_real) + parseFloat(memory.cached))) / parseFloat(memory.total_real);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Container service={service}>
|
<Container service={service}>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user