]> git.pld-linux.org Git - packages/cacti.git/commitdiff
- make linux_memory.pl script to work
authorElan Ruusamäe <glen@pld-linux.org>
Sun, 5 Oct 2008 14:07:38 +0000 (14:07 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    cacti-linux_memory.patch -> 1.1
    cacti.spec -> 1.87

cacti-linux_memory.patch [new file with mode: 0644]
cacti.spec

diff --git a/cacti-linux_memory.patch b/cacti-linux_memory.patch
new file mode 100644 (file)
index 0000000..721d8c1
--- /dev/null
@@ -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;
index d102e5f0ef4fd0247b3af6b28bd7f604bf4f7e4f..e16e0f6dc71970afc9ff009c09d501e202d60a39 100644 (file)
@@ -21,6 +21,7 @@ Patch4:               %{name}-config.patch
 Patch5:                %{name}-adodb.patch
 Patch6:                %{name}-ioerror.patch
 Patch7:                %{name}-webroot.patch
+Patch8:                %{name}-linux_memory.patch
 URL:           http://www.cacti.net/
 BuildRequires: rpm-perlprov
 BuildRequires: sed >= 4.0
@@ -101,6 +102,7 @@ HTML Documentation for Cacti.
 %patch5 -p1
 %patch6 -p1
 %patch7 -p1
+%patch8 -p1
 
 mkdir -p sql
 mv *.sql sql
This page took 0.051178 seconds and 4 git commands to generate.