This pull request fixes a bug where jtop crashes upon switching to the CPU tab on Jetson devices that are running an nvpmodel that deactives some of the CPU cores:
Traceback (most recent call last):
File "/usr/local/bin/jtop", line 8, in <module>
sys.exit(main())
...
File "/usr/local/lib/python3.8/dist-packages/jtop/gui/pcpu.py", line 122, in print_cpu
freq = cpu['freq']
KeyError: 'freq'
This pull request fixes a bug where jtop crashes upon switching to the CPU tab on Jetson devices that are running an
nvpmodel
that deactives some of the CPU cores:Credit goes to https://github.com/kentdotn for the fix idea in https://github.com/rbonghi/jetson_stats/issues/556#issuecomment-2339718856