spegling av
https://github.com/karl0ss/homepage.git
synced 2025-07-01 21:59:08 +01:00
Fix calculate memory when no cache value
This commit is contained in:
förälder
e549a87719
incheckning
dde188c3c4
@ -11,5 +11,5 @@ export function calculateCPUPercent(stats) {
|
||||
}
|
||||
|
||||
export function calculateUsedMemory(stats) {
|
||||
return stats.memory_stats.usage - stats.memory_stats.stats.cache
|
||||
return stats.memory_stats.usage - (stats.memory_stats.stats.cache ?? 0)
|
||||
}
|
Laddar…
x
Referens i nytt ärende
Block a user