rpms/sysstat/devel sysstat-9.0.6.1-tickless.patch, NONE, 1.1 sysstat.spec, 1.77, 1.78

Ivana Varekova varekova at fedoraproject.org
Fri Apr 16 12:42:38 UTC 2010


Author: varekova

Update of /cvs/pkgs/rpms/sysstat/devel
In directory cvs01.phx2.fedoraproject.org:/tmp/cvs-serv30328

Modified Files:
	sysstat.spec 
Added Files:
	sysstat-9.0.6.1-tickless.patch 
Log Message:
- fix the mpstat output on tickless kernel


sysstat-9.0.6.1-tickless.patch:
 mpstat.c |    5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

--- NEW FILE sysstat-9.0.6.1-tickless.patch ---
diff -up sysstat-9.0.6.1/mpstat.c.pom sysstat-9.0.6.1/mpstat.c
--- sysstat-9.0.6.1/mpstat.c.pom	2009-09-12 20:59:04.000000000 +0200
+++ sysstat-9.0.6.1/mpstat.c	2010-04-16 14:32:06.000000000 +0200
@@ -273,9 +273,10 @@ void write_stats_core(int prev, int curr
 			pc_itv = get_per_cpu_interval(scc, scp);
 
 			if (!pc_itv) {
-				/* Current CPU is offline */
+				/* Current CPU is tickless
+				   if the CPU is offline it is omited from /proc/stat */
 				printf("    0.00    0.00    0.00    0.00    0.00    0.00"
-				       "    0.00    0.00    0.00\n");
+				       "    0.00    0.00    100.00\n");
 			}
 			else {
 				printf("  %6.2f  %6.2f  %6.2f  %6.2f  %6.2f  %6.2f"


Index: sysstat.spec
===================================================================
RCS file: /cvs/pkgs/rpms/sysstat/devel/sysstat.spec,v
retrieving revision 1.77
retrieving revision 1.78
diff -u -p -r1.77 -r1.78
--- sysstat.spec	2 Mar 2010 10:54:19 -0000	1.77
+++ sysstat.spec	16 Apr 2010 12:42:38 -0000	1.78
@@ -1,6 +1,6 @@
 Name: sysstat
 Version: 9.0.6.1
-Release: 1%{?dist}
+Release: 2%{?dist}
 Summary: The sar and iostat system monitoring commands
 License: GPLv2+
 Group: Applications/System
@@ -12,6 +12,7 @@ Patch0: sysstat-9.0.4-init_script.patch
 Patch1: sysstat-9.0.6-nfs.patch
 # make init script lsb
 Patch2: sysstat-9.0.4-init_script_lsb.patch
+Patch3: sysstat-9.0.6.1-tickless.patch
 
 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) 
 
@@ -30,6 +31,7 @@ activity.
 %patch0 -p1 -b .ii
 %patch1 -p1 -b .nfs
 %patch2 -p1 -b .lsb
+%patch3 -p1 -b .tl
 iconv -f windows-1252 -t utf8 CREDITS > CREDITS.aux
 mv CREDITS.aux CREDITS
 
@@ -81,6 +83,9 @@ rm -rf %{buildroot}
 %{_localstatedir}/log/sa
 
 %changelog
+* Fri Apr 16 2010 Ivana Hutarova Varekova <varekova at redhat.com> - 9.0.6.1-2
+- fix the mpstat output on tickless kernel
+
 * Tue Mar  2 2010 Ivana Hutarova Varekova <varekova at redhat.com> - 9.0.6.1-1
 - update to 9.0.6.1
 



More information about the scm-commits mailing list