Skip to content

Conversation

@zersh01
Copy link

@zersh01 zersh01 commented Jan 25, 2025

In newer versions of bash (>5.1), you might encounter the error:

line 37: printf: 0x00000000 00000000 00000000: invalid hex number

I have added error handling. I also implemented a check to determine if the server is an LXC container. If it is, then only the allocated (cgroup) CPUs are displayed.

In newer versions of bash (>5.1), you might encounter the error:

line 37: printf: 0x00000000 00000000 00000000: invalid hex number

I have added error handling. I also implemented a check to determine if the server is an LXC container. If it is, then only the allocated (cgroup) CPUs are displayed.
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.

1 participant