mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-02-02 15:44:06 +01:00
Fixed AttributeError in cpustats
This commit is contained in:
parent
818f01e206
commit
089d032b34
@ -292,7 +292,7 @@ class FunCommands(callbacks.Privmsg):
|
||||
def cpustats(self, irc, msg, args):
|
||||
"takes no arguments"
|
||||
(user, system, childUser, childSystem, elapsed) = os.times()
|
||||
timeRunning = time.time() - self._startTime
|
||||
timeRunning = time.time() - world.startedAt
|
||||
threads = threading.activeCount()
|
||||
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 '\
|
||||
|
Loading…
Reference in New Issue
Block a user