aboutsummaryrefslogtreecommitdiffstats
path: root/worker
diff options
context:
space:
mode:
authorpcarrier <pcarrier@ef72aa8b-4018-0410-8976-d6e080ef94d8>2010-11-27 22:12:17 +0000
committerpcarrier <pcarrier@ef72aa8b-4018-0410-8976-d6e080ef94d8>2010-11-27 22:12:17 +0000
commitaf1d5ca17d180a2617725ed43896f31aca4c0d1a (patch)
tree247a28e64ad538a3541db7064704e00fbb089c6d /worker
parent6180ba95ca3ee829069349c6a04e3ebf46cef880 (diff)
downloadsos-af1d5ca17d180a2617725ed43896f31aca4c0d1a.tar.gz
[worker] s/__cmd_number__/__req_counter__/
git-svn-id: svn+ssh://svn.fedorahosted.org/svn/sos/trunk@1037 ef72aa8b-4018-0410-8976-d6e080ef94d8
Diffstat (limited to 'worker')
-rw-r--r--worker/worker.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/worker/worker.py b/worker/worker.py
index 8fecfdce..e9977019 100644
--- a/worker/worker.py
+++ b/worker/worker.py
@@ -82,7 +82,7 @@ class Shell:
self.__status_stream__ = status_stream
self.__bork_action__ = bork_action or self.exit
self.__exit__ = False
- self.__cmd_number__ = 0
+ self.__req_counter__ = 0
def loop(self):
while self.__exit__ == False:
@@ -98,7 +98,7 @@ class Shell:
except KeyboardInterrupt:
pass
else:
- self.__cmd_number__ += 1
+ self.__req_counter__ += 1
try:
request.execute()
except KeyboardInterrupt:
@@ -111,7 +111,7 @@ class Shell:
self.__bork_action__()
def show_prompt(self):
- self.write("#%i#\n" % self.__cmd_number__)
+ self.write("#%i#\n" % self.__req_counter__)
def status(self, str):
print >> self.__status_stream__, str