aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib
diff options
context:
space:
mode:
authorjwbernin <jwbernin@ef72aa8b-4018-0410-8976-d6e080ef94d8>2006-08-09 19:00:10 +0000
committerjwbernin <jwbernin@ef72aa8b-4018-0410-8976-d6e080ef94d8>2006-08-09 19:00:10 +0000
commit4204e263be95fda641f41db5242760b28a71b405 (patch)
tree41cadf580f065c2ff3e343e0ed9f12f042a76c16 /src/lib
parent358e5ba36c8b17745d96790cb125eb2160817387 (diff)
downloadsos-4204e263be95fda641f41db5242760b28a71b405.tar.gz
Adding option to use multithreading for collection - default is single-threaded
git-svn-id: svn+ssh://svn.fedorahosted.org/svn/sos/trunk@37 ef72aa8b-4018-0410-8976-d6e080ef94d8
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/sos/plugintools.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/sos/plugintools.py b/src/lib/sos/plugintools.py
index d67f17a4..c09fc801 100644
--- a/src/lib/sos/plugintools.py
+++ b/src/lib/sos/plugintools.py
@@ -267,14 +267,14 @@ class PluginBase:
self.customText = self.customText + text
return
- def doCollect(self):
- self.thread = Thread(target=self.copyStuff,name=self.piName+'-thread')
+ def doCollect(self, verbosity):
+ self.thread = Thread(target=self.copyStuff,name=self.piName+'-thread',args=(verbosity,))
self.thread.start()
def wait(self):
self.thread.join()
- def copyStuff(self):
+ def copyStuff(self, verbosity):
for path in self.copyPaths:
try:
self.doCopyFileOrDir(path)
@@ -301,7 +301,7 @@ class PluginBase:
"""
pass
- def analyze(self):
+ def analyze(self, verbosity):
pass
def postproc(self, dstroot):