tuna: cpuview.py: Omit offline cpus in socket_ids list
sysfy.py inserts None for offline cpus in class cpus, method reload, via
class cpu method reload.
This is potentially useful, so we don't want to change these classes.
However in cpuview.py - class cpuview, we don't want to display these
offline cpus, so we only need to recognize that the type None can be
returned and then skip over it.
This fixes Bugzilla 1036156
First detected on some ppc
Traceback (most recent call last):
File "./tuna-cmd.py", line 656, in <module>
File "./tuna-cmd.py", line 650, in main
app = tuna_gui.main_gui(kthreads, uthreads, cpus_filtered)
File "/home/jkacur/tuna/tuna/tuna_gui.py", line 49, in __init__
self.procview, self.irqview, cpus_filtered)
File "/home/jkacur/tuna/tuna/gui/cpuview.py", line 253, in __init__
socket_ids = [ int(id) for id in self.cpus.sockets.keys() ]
Signed-off-by: John Kacur <email@example.com>
Signed-off-by: Jiri Kastner <firstname.lastname@example.org>
1 file changed