From 0d0709624a30e07c4f3e5a5b1b72b10a241660b5 Mon Sep 17 00:00:00 2001 From: Ben Kurtovic Date: Sat, 14 May 2011 02:04:21 -0400 Subject: [PATCH] more tweaks --- irc/commands/tasks.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/irc/commands/tasks.py b/irc/commands/tasks.py index 5130cc9..b606e97 100644 --- a/irc/commands/tasks.py +++ b/irc/commands/tasks.py @@ -57,17 +57,17 @@ class Tasks(BaseCommand): tname = thread.name if tname == "MainThread": tname = self.get_main_thread_name() - normal_threads.append("\x0302{}\x0301 (running as main thread)".format(tname)) + normal_threads.append("\x0302{}\x0301 (as main thread, {})".format(tname, thread.ident)) elif tname in ["irc-frontend", "irc-watcher", "wiki-scheduler"]: - normal_threads.append("\x0302{}\x0301".format(tname)) + normal_threads.append("\x0302{}\x0301 ({})".format(tname, thread.ident)) else: task_thread_num += 1 - task_threads.append("\x0302{}\x0301".format(tname)) + task_threads.append("\x0302{}\x0301 ({})".format(tname, thread.ident)) if task_threads: - msg = "\x0303{}\x0301 threads active: {}, and \x0303{}\x0301 tasks: {}.".format(len(threads), ', '.join(normal_threads), task_thread_num, ', '.join(task_threads)) + msg = "\x02{}\x0F threads active: {}, and \x02{}\x0F task threads: {}.".format(len(threads), ', '.join(normal_threads), task_thread_num, ', '.join(task_threads)) else: - msg = "\x0303{}\x0301 threads active: {}, and \x03030\x0301 tasks.".format(len(threads), ', '.join(normal_threads)) + msg = "\x02{}\x0F threads active: {}, and \x020\x0F task threads.".format(len(threads), ', '.join(normal_threads)) self.connection.reply(self.data, msg) def do_listall(self):