Initial release.

This commit is contained in:
hjp 1998-08-22 20:16:38 +00:00
parent 8bb8ebe167
commit 945181f016
2 changed files with 19 additions and 0 deletions

12
memlog/GNUmakefile Normal file
View File

@ -0,0 +1,12 @@
include GNUmakevars
BINDIR=/usr/local/sbin
include GNUmakerules
memlog:
install: $(BINDIR)/memlog
clean:
:

7
memlog/memlog Normal file
View File

@ -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