summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <acme@redhat.com>2009-12-07 15:50:51 -0200
committerArnaldo Carvalho de Melo <acme@redhat.com>2009-12-07 15:50:51 -0200
commit7d33dd16faaf8a58e85628f868a75f54d8bb3822 (patch)
treefa7a80d4fe7da9db093128c36aaee21e40a69e26
parent3a71daee86d112f33d0a222fa18decca7fffe6a1 (diff)
downloadtuna-7d33dd16faaf8a58e85628f868a75f54d8bb3822.tar.gz
cmdline: Fix threaded interrupt name bug
Introduced in: 50f1a4234d03a7766d406f3ec53bf1fff2f0a644 "tuna: Handle 2.6.31 style threaded irq names" Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
-rwxr-xr-xtuna-cmd.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tuna-cmd.py b/tuna-cmd.py
index cf1f3fb..676c765 100755
--- a/tuna-cmd.py
+++ b/tuna-cmd.py
@@ -181,7 +181,7 @@ def ps_show_thread(pid, affect_children, ps,
try:
if not irqs:
irqs = procfs.interrupts()
- if cmd[4:] == "IRQ-":
+ if cmd[:4] == "IRQ-":
users = irqs[tuna.irq_thread_number(cmd)]["users"]
for u in users:
if u in get_nics():