- fix sar problem - sysstat can not monitor system status every second

This commit is contained in:
Ivana Varekova 2010-07-19 06:38:42 +00:00
parent ca9eb93bc6
commit b63fc5febc
2 changed files with 18 additions and 1 deletions

12
sysstat-9.0.6.1-sec.patch Normal file
View File

@ -0,0 +1,12 @@
diff -up sysstat-9.0.6.1/sa_common.c.pom sysstat-9.0.6.1/sa_common.c
--- sysstat-9.0.6.1/sa_common.c.pom 2009-10-17 15:08:07.000000000 +0200
+++ sysstat-9.0.6.1/sa_common.c 2010-07-19 08:37:43.000000000 +0200
@@ -207,7 +207,7 @@ int next_slice(unsigned long long uptime
pt1 = (entry / interval) * interval;
pt2 = ((entry / interval) + 1) * interval;
- return (((pt1 >= min) && (pt1 < max)) || ((pt2 >= min) && (pt2 < max)));
+ return (((pt1 >= min) && (pt1 <= max)) || ((pt2 >= min) && (pt2 <= max)));
}
/*

View File

@ -1,6 +1,6 @@
Name: sysstat
Version: 9.0.6.1
Release: 3%{?dist}
Release: 4%{?dist}
Summary: The sar and iostat system monitoring commands
License: GPLv2+
Group: Applications/System
@ -13,6 +13,7 @@ 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
Patch4: sysstat-9.0.6.1-sec.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
@ -32,6 +33,7 @@ activity.
%patch1 -p1 -b .nfs
%patch2 -p1 -b .lsb
%patch3 -p1 -b .tl
%patch4 -p1 -b .sec
iconv -f windows-1252 -t utf8 CREDITS > CREDITS.aux
mv CREDITS.aux CREDITS
@ -83,6 +85,9 @@ rm -rf %{buildroot}
%{_localstatedir}/log/sa
%changelog
* Mon Jul 19 2010 Ivana Hutarova Varekova <varekova@redhat.com> - 9.0.6.1-4
- fix sar problem - sysstat can not monitor system status every second
* Mon Apr 19 2010 Ivana Hutarova Varekova <varekova@redhat.com> - 9.0.6.1-3
- fix mpstat tool (when the cpu is switched off)