mirror of
https://github.com/hassio-addons/bashio.git
synced 2025-05-06 12:01:25 +00:00
✨ Adds support for memory usage in percent
This commit is contained in:
parent
d5848fc7e0
commit
75590a9ac1
3 changed files with 39 additions and 2 deletions
|
@ -271,6 +271,14 @@ function bashio::supervisor.memory_limit() {
|
|||
bashio::supervisor.stats 'supervisor.stats.memory_limit' '.memory_limit'
|
||||
}
|
||||
|
||||
# ------------------------------------------------------------------------------
|
||||
# Returns memory usage in percent from the Supervisor.
|
||||
# ------------------------------------------------------------------------------
|
||||
function bashio::supervisor.memory_percent() {
|
||||
bashio::log.trace "${FUNCNAME[0]}"
|
||||
bashio::supervisor.stats 'supervisor.stats.memory_percent' '.memory_percent'
|
||||
}
|
||||
|
||||
# ------------------------------------------------------------------------------
|
||||
# Returns outgoing network usage from the Supervisor.
|
||||
# ------------------------------------------------------------------------------
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue