- fix sar problem - sysstat can not monitor system status every second
This commit is contained in:
parent
ca9eb93bc6
commit
b63fc5febc
12
sysstat-9.0.6.1-sec.patch
Normal file
12
sysstat-9.0.6.1-sec.patch
Normal 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)));
|
||||||
|
}
|
||||||
|
|
||||||
|
/*
|
@ -1,6 +1,6 @@
|
|||||||
Name: sysstat
|
Name: sysstat
|
||||||
Version: 9.0.6.1
|
Version: 9.0.6.1
|
||||||
Release: 3%{?dist}
|
Release: 4%{?dist}
|
||||||
Summary: The sar and iostat system monitoring commands
|
Summary: The sar and iostat system monitoring commands
|
||||||
License: GPLv2+
|
License: GPLv2+
|
||||||
Group: Applications/System
|
Group: Applications/System
|
||||||
@ -13,6 +13,7 @@ Patch1: sysstat-9.0.6-nfs.patch
|
|||||||
# make init script lsb
|
# make init script lsb
|
||||||
Patch2: sysstat-9.0.4-init_script_lsb.patch
|
Patch2: sysstat-9.0.4-init_script_lsb.patch
|
||||||
Patch3: sysstat-9.0.6.1-tickless.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)
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||||
|
|
||||||
@ -32,6 +33,7 @@ activity.
|
|||||||
%patch1 -p1 -b .nfs
|
%patch1 -p1 -b .nfs
|
||||||
%patch2 -p1 -b .lsb
|
%patch2 -p1 -b .lsb
|
||||||
%patch3 -p1 -b .tl
|
%patch3 -p1 -b .tl
|
||||||
|
%patch4 -p1 -b .sec
|
||||||
iconv -f windows-1252 -t utf8 CREDITS > CREDITS.aux
|
iconv -f windows-1252 -t utf8 CREDITS > CREDITS.aux
|
||||||
mv CREDITS.aux CREDITS
|
mv CREDITS.aux CREDITS
|
||||||
|
|
||||||
@ -83,6 +85,9 @@ rm -rf %{buildroot}
|
|||||||
%{_localstatedir}/log/sa
|
%{_localstatedir}/log/sa
|
||||||
|
|
||||||
%changelog
|
%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
|
* Mon Apr 19 2010 Ivana Hutarova Varekova <varekova@redhat.com> - 9.0.6.1-3
|
||||||
- fix mpstat tool (when the cpu is switched off)
|
- fix mpstat tool (when the cpu is switched off)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user