From af1d5ca17d180a2617725ed43896f31aca4c0d1a Mon Sep 17 00:00:00 2001 From: pcarrier Date: Sat, 27 Nov 2010 22:12:17 +0000 Subject: [worker] s/__cmd_number__/__req_counter__/ git-svn-id: svn+ssh://svn.fedorahosted.org/svn/sos/trunk@1037 ef72aa8b-4018-0410-8976-d6e080ef94d8 --- worker/worker.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'worker/worker.py') 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 -- cgit