]>
Commit | Line | Data |
---|---|---|
7d9bb249 ER |
1 | --- cacti-0.8.7b/scripts/linux_memory.pl~ 2008-02-12 02:57:48.000000000 +0200 |
2 | +++ cacti-0.8.7b/scripts/linux_memory.pl 2008-10-05 17:06:04.399773770 +0300 | |
3 | @@ -1,6 +1,6 @@ | |
4 | #!/usr/bin/perl | |
5 | ||
6 | -open(PROCESS, "cat /proc/meminfo | grep -w $ARGV[0] |"); | |
7 | +open(PROCESS, "grep $ARGV[0] < /proc/meminfo |"); | |
8 | foreach (<PROCESS>) { | |
9 | if ($_ =~ /($ARGV[0].*\s)(.*[0-9])( kB)/) { | |
10 | print $2; |