[tcptrack/f13/master] - Update to 1.4.0 - Add patch to increase text ui select timeout to reduce cpu usage

Orion Poplawski orion at fedoraproject.org
Thu Dec 16 17:46:19 UTC 2010


commit 9da3b8956f86f4b2ff1738b37afa79a5be5cdbf3
Author: Orion Poplawski <orion at cora.nwra.com>
Date:   Thu Dec 16 10:44:30 2010 -0700

    - Update to 1.4.0
    - Add patch to increase text ui select timeout to reduce cpu usage

 .gitignore                   |    1 +
 sources                      |    2 +-
 tcptrack-1.4.0-timeout.patch |   11 +++++++++++
 tcptrack.spec                |   11 +++++++++--
 4 files changed, 22 insertions(+), 3 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index c5b3b63..347ae1d 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1,2 @@
 tcptrack-1.3.0.tar.gz
+/tcptrack-1.4.0.tar.gz
diff --git a/sources b/sources
index f46f01f..284848c 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-227baeb2f96758f7614f6f788b6a4d93  tcptrack-1.3.0.tar.gz
+c177a4f170eefb2c3719965694496228  tcptrack-1.4.0.tar.gz
diff --git a/tcptrack-1.4.0-timeout.patch b/tcptrack-1.4.0-timeout.patch
new file mode 100644
index 0000000..f738419
--- /dev/null
+++ b/tcptrack-1.4.0-timeout.patch
@@ -0,0 +1,11 @@
+--- tcptrack-1.4.0/src/TextUI.cc.timeout	2010-09-27 17:02:01.000000000 -0600
++++ tcptrack-1.4.0/src/TextUI.cc	2010-12-15 14:49:09.139756158 -0700
+@@ -136,7 +136,7 @@
+ 		FD_ZERO(&fdset);
+ 		FD_SET(0,&fdset);
+ 		tv.tv_sec=0;
+-		tv.tv_usec=100;
++		tv.tv_usec=10000;
+ 
+ 		rv=select(1,&fdset,NULL,NULL,&tv);
+ 		if( rv )
diff --git a/tcptrack.spec b/tcptrack.spec
index 0f84f3b..ce930e4 100644
--- a/tcptrack.spec
+++ b/tcptrack.spec
@@ -1,6 +1,6 @@
 Name:           tcptrack
-Version:        1.3.0
-Release:        3%{?dist}
+Version:        1.4.0
+Release:        1%{?dist}
 Summary:        Displays information about tcp connections on a network interface
 
 Group:          Applications/System
@@ -8,6 +8,8 @@ License:        LGPLv2+
 URL:            http://www.rhythm.cx/~steve/devel/tcptrack/
 Source0:        http://www.rhythm.cx/~steve/devel/%{name}/release/%{version}/source/%{name}-%{version}.tar.gz
 Patch0:         tcptrack-1.3.0-util.patch
+#Increase text ui select timeout to 10000 usec, upstream agrees
+Patch1:         tcptrack-1.4.0-timeout.patch
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
 BuildRequires:  ncurses-devel
@@ -24,6 +26,7 @@ and bandwidth usage
 %prep
 %setup -q
 %patch0 -p1 -b .util
+%patch1 -p1 -b .timeout
 
 %build
 %configure
@@ -47,6 +50,10 @@ rm -rf $RPM_BUILD_ROOT
 
 
 %changelog
+* Thu Dec 16 2010 Orion Poplawski <orion at cora.nwra.com> - 1.4.0-1
+- Update to 1.4.0
+- Add patch to increase text ui select timeout to reduce cpu usage
+
 * Sun Jul 26 2009 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 1.3.0-3
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
 


More information about the scm-commits mailing list