SOURCES: cacti-linux_memory.patch (NEW) - make linux_memory.pl script to work

glen glen at pld-linux.org
Sun Oct 5 16:07:23 CEST 2008


Author: glen                         Date: Sun Oct  5 14:07:23 2008 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- make linux_memory.pl script to work

---- Files affected:
SOURCES:
   cacti-linux_memory.patch (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SOURCES/cacti-linux_memory.patch
diff -u /dev/null SOURCES/cacti-linux_memory.patch:1.1
--- /dev/null	Sun Oct  5 16:07:23 2008
+++ SOURCES/cacti-linux_memory.patch	Sun Oct  5 16:07:17 2008
@@ -0,0 +1,10 @@
+--- cacti-0.8.7b/scripts/linux_memory.pl~	2008-02-12 02:57:48.000000000 +0200
++++ cacti-0.8.7b/scripts/linux_memory.pl	2008-10-05 17:06:04.399773770 +0300
+@@ -1,6 +1,6 @@
+ #!/usr/bin/perl
+ 
+-open(PROCESS, "cat /proc/meminfo | grep -w $ARGV[0] |");
++open(PROCESS, "grep $ARGV[0] < /proc/meminfo |");
+ foreach (<PROCESS>) {
+ 	if ($_ =~ /($ARGV[0].*\s)(.*[0-9])( kB)/) {
+ 		print $2;
================================================================


More information about the pld-cvs-commit mailing list