Fixed AttributeError in cpustats

This commit is contained in:
Jeremy Fincher 2003-04-02 09:31:50 +00:00
parent 818f01e206
commit 089d032b34

View File

@ -292,7 +292,7 @@ class FunCommands(callbacks.Privmsg):
def cpustats(self, irc, msg, args): def cpustats(self, irc, msg, args):
"takes no arguments" "takes no arguments"
(user, system, childUser, childSystem, elapsed) = os.times() (user, system, childUser, childSystem, elapsed) = os.times()
timeRunning = time.time() - self._startTime timeRunning = time.time() - world.startedAt
threads = threading.activeCount() threads = threading.activeCount()
response ='I have taken %s seconds of user time and %s seconds of '\ response ='I have taken %s seconds of user time and %s seconds of '\
'system time, for a total of %s seconds of CPU time. My '\ 'system time, for a total of %s seconds of CPU time. My '\