mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-01-23 10:34:19 +01:00
Fixed new pluralization bug in cpustats.
This commit is contained in:
parent
f4fb779f9f
commit
8f40c90e0b
@ -454,13 +454,14 @@ class FunCommands(callbacks.Privmsg):
|
|||||||
' of system time for a total of %s seconds of CPU time. ' \
|
' of system time for a total of %s seconds of CPU time. ' \
|
||||||
'I\'ve taken a total of %s%% of this computer\'s time. ' \
|
'I\'ve taken a total of %s%% of this computer\'s time. ' \
|
||||||
'Out of %s spawned %s, I have %s active. ' \
|
'Out of %s spawned %s, I have %s active. ' \
|
||||||
'I have processed %s commands.' %\
|
'I have processed %s %s.' %\
|
||||||
(user, system, user + system,
|
(user, system, user + system,
|
||||||
childUser, childSystem, childUser + childSystem,
|
childUser, childSystem, childUser + childSystem,
|
||||||
(user+system+childUser+childSystem)/timeRunning,
|
(user+system+childUser+childSystem)/timeRunning,
|
||||||
world.threadsSpawned,
|
world.threadsSpawned,
|
||||||
world.threadsSpawned == 1 and 'thread' or 'threads',
|
world.threadsSpawned == 1 and 'thread' or 'threads',
|
||||||
threads, world.commandsProcessed)
|
threads, world.commandsProcessed,
|
||||||
|
world.commandProcessed == 1 and 'command' or 'commands')
|
||||||
irc.reply(msg, response)
|
irc.reply(msg, response)
|
||||||
|
|
||||||
def uptime(self, irc, msg, args):
|
def uptime(self, irc, msg, args):
|
||||||
|
Loading…
Reference in New Issue
Block a user