[psacct/f13/master] - Resolves: #632845 No show CPU usage in SA

Ivana Varekova varekova at fedoraproject.org
Wed Sep 15 10:54:54 UTC 2010


commit 9e1fd73c148656bd0297e766e131fe988553ad40
Author: Ivana Hutarova Varekova <varekova at redhat.com>
Date:   Wed Sep 15 12:57:53 2010 +0200

    - Resolves: #632845
      No show CPU usage in SA

 psacct-6.5.4-hzval.patch |   12 ++++++++++++
 psacct.spec              |    9 ++++++++-
 2 files changed, 20 insertions(+), 1 deletions(-)
---
diff --git a/psacct-6.5.4-hzval.patch b/psacct-6.5.4-hzval.patch
new file mode 100644
index 0000000..bd67852
--- /dev/null
+++ b/psacct-6.5.4-hzval.patch
@@ -0,0 +1,12 @@
+diff -up acct-6.5.4/sa.c.pom acct-6.5.4/sa.c
+--- acct-6.5.4/sa.c.pom	2010-02-12 02:24:11.000000000 +0100
++++ acct-6.5.4/sa.c	2010-06-25 12:32:18.000000000 +0200
+@@ -280,7 +280,7 @@ int main(int argc, char *argv[])
+ {
+   int c;
+ 
+-  static unsigned int hzval;
++  hzval = sysconf(_SC_CLK_TCK);
+   program_name = argv[0];
+ 
+   /* Cache the page size of the machine for the PAGES_TO_KB macro */
diff --git a/psacct.spec b/psacct.spec
index 471c258..d1a37bf 100644
--- a/psacct.spec
+++ b/psacct.spec
@@ -12,7 +12,7 @@
 Summary: Utilities for monitoring process activities
 Name: psacct
 Version: 6.5.4
-Release: 1%{?dist}
+Release: 2%{?dist}
 License: GPLv3+
 Group: Applications/System
 URL: ftp://ftp.gnu.org/pub/gnu/acct/
@@ -27,6 +27,7 @@ Patch6: psacct-6.3.2-sa-manfix.patch
 Patch8: psacct-6.3.2-lastcomm_man.patch
 Patch9: acct-6.3.2-sa_manpage.patch
 Patch11: psacct-6.3.2-man-pages.patch
+Patch12: psacct-6.5.4-hzval.patch
 
 Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 Requires: /sbin/chkconfig /sbin/install-info
@@ -58,6 +59,7 @@ commands.
 %patch8 -p1 -b .man
 %patch9 -p1 -b .pct
 %patch11 -p1 -b .new
+%patch12 -p1 -b .hzval
 
 %build
 %if ! %{FHS_compliant}
@@ -153,6 +155,11 @@ fi
 %{_infodir}/accounting.info.gz
 
 %changelog
+* Wed Sep 15 2010 Ivana Hutarova Varekova <varekova at redhat.com> - 6.5.4-2
+- Resolves: #632845
+  No show CPU usage in SA
+
+
 * Fri Feb 12 2010 Ivana Hutarova Varekova <varekova at redhat.com> - 6.5.4-1
 - update to 6.5.4
 - remove obsolete patches


More information about the scm-commits mailing list