rpms/conduit/devel cpu-usage.patch,NONE,1.1 conduit.spec,1.28,1.29
Bernard Johnson
bjohnson at fedoraproject.org
Sun Jun 21 16:17:51 UTC 2009
Author: bjohnson
Update of /cvs/pkgs/rpms/conduit/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv3591/devel
Modified Files:
conduit.spec
Added Files:
cpu-usage.patch
Log Message:
- patch to bring down cpu usage for python 2.6
cpu-usage.patch:
--- NEW FILE cpu-usage.patch ---
diff --git a/conduit/modules/NetworkModule/XMLRPCUtils.py b/conduit/modules/NetworkModule/XMLRPCUtils.py
index 5b56175..f806e76 100644
--- a/conduit/modules/NetworkModule/XMLRPCUtils.py
+++ b/conduit/modules/NetworkModule/XMLRPCUtils.py
@@ -12,6 +12,8 @@ import cPickle
import xmlrpclib
import SimpleXMLRPCServer
import logging
+import sys
+import time
#One log for the client
clog = logging.getLogger("modules.Network.C")
@@ -78,6 +80,7 @@ class StoppableXMLRPCServer(SimpleXMLRPCServer.SimpleXMLRPCServer):
def serve(self):
self.socket.setblocking(0)
while not self.closed:
+ time.sleep(0.15)
self.handle_request()
def get_request(self):
Index: conduit.spec
===================================================================
RCS file: /cvs/pkgs/rpms/conduit/devel/conduit.spec,v
retrieving revision 1.28
retrieving revision 1.29
diff -u -p -r1.28 -r1.29
--- conduit.spec 24 Feb 2009 08:52:55 -0000 1.28
+++ conduit.spec 21 Jun 2009 16:17:20 -0000 1.29
@@ -2,7 +2,7 @@
Name: conduit
Version: 0.3.15
-Release: 5%{?dist}
+Release: 6%{?dist}
Summary: A synchronization solution for GNOME
Group: Applications/Productivity
@@ -10,6 +10,7 @@ License: GPLv2+
URL: http://www.conduit-project.org/
Source0: http://download.gnome.org/sources/conduit/0.3/%{name}-%{version}.tar.gz
Patch0: conduit-0.3.14-defaults.patch
+Patch1: cpu-usage.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
@@ -57,6 +58,7 @@ synchronization.
%prep
%setup -q -n conduit-%{version}
%patch0 -p1 -b .defaults
+%patch1 -p1 -b .cpu-usage
# fix eol encoding in a couple of files
sed -i 's/\r//' NEWS TODO
@@ -138,6 +140,9 @@ fi
%changelog
+* Sun Jun 21 2009 Bernard Johnson <bjohnson at symetrix.com> - 0.3.15-6
+- patch to bring down cpu usage for python 2.6
+
* Tue Feb 24 2009 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.3.15-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
More information about the fedora-extras-commits
mailing list