diff options
author | jwbernin <jwbernin@ef72aa8b-4018-0410-8976-d6e080ef94d8> | 2006-08-09 19:00:10 +0000 |
---|---|---|
committer | jwbernin <jwbernin@ef72aa8b-4018-0410-8976-d6e080ef94d8> | 2006-08-09 19:00:10 +0000 |
commit | 4204e263be95fda641f41db5242760b28a71b405 (patch) | |
tree | 41cadf580f065c2ff3e343e0ed9f12f042a76c16 /src/lib | |
parent | 358e5ba36c8b17745d96790cb125eb2160817387 (diff) | |
download | sos-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.py | 8 |
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): |