- fix the mpstat output on tickless kernel

This commit is contained in:
Ivana Varekova 2010-04-16 12:42:38 +00:00
parent 2d96ac2ace
commit 9c3e1f0595
2 changed files with 22 additions and 1 deletions

View File

@ -0,0 +1,16 @@
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"

View File

@ -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@redhat.com> - 9.0.6.1-2
- fix the mpstat output on tickless kernel
* Tue Mar 2 2010 Ivana Hutarova Varekova <varekova@redhat.com> - 9.0.6.1-1
- update to 9.0.6.1