Plugin memory: fix evaluation of "inactive laundry"

The variable name was misspelled.
This commit is contained in:
Lars Kruse 2020-02-07 14:11:44 +01:00
parent f4518e5375
commit d1da0df1b2
1 changed files with 2 additions and 2 deletions

View File

@ -14,7 +14,7 @@ config_memory() {
ACTIVECACHE=$(echo "$MINFO" | grep "^ActiveCache:" | cut -d\ -f2)
INACTIVE=$(echo "$MINFO" | grep "^Inactive:" | cut -d\ -f2)
INACTDIRTY=$(echo "$MINFO" | grep "^Inact_dirty:" | cut -d\ -f2)
INACTLAUNDY=$(echo "$MINFO" | grep "^Inact_laundry:" | cut -d\ -f2)
INACTLAUNDRY=$(echo "$MINFO" | grep "^Inact_laundry:" | cut -d\ -f2)
INACTCLEAN=$(echo "$MINFO" | grep "^Inact_clean:" | cut -d\ -f2)
GRAPH_ORDER="apps";
@ -129,7 +129,7 @@ fetch_memory() {
ACTIVECACHE=$(echo "$MINFO" | grep "^ActiveCache:" | cut -d\ -f2)
INACTIVE=$(echo "$MINFO" | grep "^Inactive:" | cut -d\ -f2)
INACTDIRTY=$(echo "$MINFO" | grep "^Inact_dirty:" | cut -d\ -f2)
INACTLAUNDY=$(echo "$MINFO" | grep "^Inact_laundry:" | cut -d\ -f2)
INACTLAUNDRY=$(echo "$MINFO" | grep "^Inact_laundry:" | cut -d\ -f2)
INACTCLEAN=$(echo "$MINFO" | grep "^Inact_clean:" | cut -d\ -f2)
APPS=$(($MEMTOTAL - $MEMFREE - $BUFFERS - $CACHED))
SWAP=$(($SWAP_TOTAL - $SWAP_FREE))