fff-nodewatcher: add available memory to data #132
|
@ -1,7 +1,7 @@
|
|||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=fff-nodewatcher
|
||||
PKG_RELEASE:=60
|
||||
PKG_RELEASE:=61
|
||||
|
||||
include $(INCLUDE_DIR)/package.mk
|
||||
|
||||
|
|
|
@ -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>" }
|
||||
|
|
Loading…
Reference in New Issue