Initial release.
This commit is contained in:
parent
8bb8ebe167
commit
945181f016
|
@ -0,0 +1,12 @@
|
||||||
|
include GNUmakevars
|
||||||
|
|
||||||
|
BINDIR=/usr/local/sbin
|
||||||
|
|
||||||
|
include GNUmakerules
|
||||||
|
|
||||||
|
memlog:
|
||||||
|
|
||||||
|
install: $(BINDIR)/memlog
|
||||||
|
|
||||||
|
clean:
|
||||||
|
:
|
|
@ -0,0 +1,7 @@
|
||||||
|
#!/bin/sh
|
||||||
|
now=`/bin/date '+%Y-%m-%dT%H:%M:%S'`
|
||||||
|
egrep -i '^[a-z]+: +[0-9]+ kB$' /proc/meminfo |\
|
||||||
|
while read a
|
||||||
|
do
|
||||||
|
echo "$now $a"
|
||||||
|
done >> /var/log/memlog
|
Loading…
Reference in New Issue