Browse Source

clarify that we're displaying idents here

tags/v0.1
Ben Kurtovic 13 years ago
parent
commit
642428d15d
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      irc/commands/tasks.py

+ 3
- 3
irc/commands/tasks.py View File

@@ -57,12 +57,12 @@ class Tasks(BaseCommand):
tname = thread.name tname = thread.name
if tname == "MainThread": if tname == "MainThread":
tname = self.get_main_thread_name() tname = self.get_main_thread_name()
normal_threads.append("\x0302{}\x0301 (as main thread, {})".format(tname, thread.ident))
normal_threads.append("\x0302{}\x0301 (as main thread, id {})".format(tname, thread.ident))
elif tname in ["irc-frontend", "irc-watcher", "wiki-scheduler"]: elif tname in ["irc-frontend", "irc-watcher", "wiki-scheduler"]:
normal_threads.append("\x0302{}\x0301 ({})".format(tname, thread.ident))
normal_threads.append("\x0302{}\x0301 (id {})".format(tname, thread.ident))
else: else:
task_thread_num += 1 task_thread_num += 1
task_threads.append("\x0302{}\x0301 ({})".format(tname, thread.ident))
task_threads.append("\x0302{}\x0301 (id {})".format(tname, thread.ident))
if task_threads: if task_threads:
msg = "\x02{}\x0F threads active: {}, and \x02{}\x0F task threads: {}.".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))


Loading…
Cancel
Save