fff-nodewatcher: add available memory to data #132

Closed
adschm wants to merge 1 commits from adschm:mem into master
2 changed files with 2 additions and 1 deletions

View File

@ -1,7 +1,7 @@
include $(TOPDIR)/rules.mk
PKG_NAME:=fff-nodewatcher
PKG_RELEASE:=60
PKG_RELEASE:=61
include $(INCLUDE_DIR)/package.mk

View File

@ -39,6 +39,7 @@ SYSTEM_DATA="$SYSTEM_DATA$uptime"
memory=$(awk '
/^MemTotal/ { printf "<memory_total>"$2"</memory_total>" }
/^MemAvail/ { printf "<memory_available>"$2"</memory_available>" }
/^Cached:/ { printf "<memory_caching>"$2"</memory_caching>" }
/^Buffers/ { printf "<memory_buffering>"$2"</memory_buffering>" }
/^MemFree/ { printf "<memory_free>"$2"</memory_free>" }