Include cached memory into usable memory calculation#10
Conversation
The memory calculation should also count cached memory into unused memory, because cached memory will be freed when applications require it.
|
Hey, thanks for your contribution. |
|
Yes, that makes totally sense. Since I don't use historical data yet, I didn't thought on that use case. |
|
Please take a look at my update, check it at your environment and provide feedback. |
kreativekrise
left a comment
There was a problem hiding this comment.
The changes work without any problem.
|
Keep in mind that if #9 gets merged you need to update your check command ;) |
|
@all-contributors please add @kreativekrise for code |
|
I've put up a pull request to add @kreativekrise! 🎉 |
The memory calculation should also count cached memory into unused memory, because cached memory will be freed when applications require it.