Use OS::getMemory for information about memory and swap.#217
Conversation
|
@kesselb Is a lot of work left? This looks like a good change which might fix issues. |
|
@come-nc I don't remember 🙈
That's about this one: https://github.com/nextcloud/serverinfo/blob/master/lib/Resources/Memory.php getMemory returns a Memory object now and the above calls needs to be updated.
I think there is (or was) some normalization logic related to memory in script.js. Not sure what needs to be updated there. |
1 similar comment
|
@come-nc I don't remember 🙈
That's about this one: https://github.com/nextcloud/serverinfo/blob/master/lib/Resources/Memory.php getMemory returns a Memory object now and the above calls needs to be updated.
I think there is (or was) some normalization logic related to memory in script.js. Not sure what needs to be updated there. |
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
5a83594 to
e6e2dd3
Compare
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
|
Note: previous code had a special case handling for using MemFree instead of MemAvailable if MemAvailable is not there because of an older linux kernel. MemAvailable was added in linux 3.14, I guess we do not need support for older kernel than this anymore? |
Should be fine yes. Linux 3.14 was released in 2014. |
To do: