]> git.pld-linux.org Git - packages/cacti.git/blame - cacti-linux_memory.patch
make logrotate compatible with ac
[packages/cacti.git] / cacti-linux_memory.patch
CommitLineData
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;
This page took 0.031794 seconds and 4 git commands to generate.