Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conditionally show frequency gauge based on whether CPU core is active #570

Merged
merged 1 commit into from
Sep 23, 2024

Conversation

savf
Copy link

@savf savf commented Sep 11, 2024

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'

Credit goes to https://github.com/kentdotn for the fix idea in #556 (comment)

@rbonghi
Copy link
Owner

rbonghi commented Sep 23, 2024

Thank you! I'm merging and release a new version

@rbonghi rbonghi merged commit fbf121b into rbonghi:master Sep 23, 2024
11 checks passed
@rbonghi
Copy link
Owner

rbonghi commented Sep 23, 2024

Released on jetson-stats 4.2.11

sudo pip3 install -U jetson-stats

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants