We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Platform
Bug description It looks like on Solaris 11.4 the output of the swap command can have an "encrypted" column.
swap
$ /usr/sbin/swap -l swapfile dev swaplo blocks free encrypted /dev/zvol/dsk/rpool/swap 303,5 0 8388608 7072944 yes
which is likely causing an issue with this line here: https://github.com/giampaolo/psutil/blob/master/psutil/_pssunos.py#L158 and may be able to be remedied by using line[3:4] instead of line[-2:]
line[3:4]
line[-2:]
The text was updated successfully, but these errors were encountered:
Please make a PR.
Sorry, something went wrong.
Alright added a PR for it.
Fix incorrect range for Solaris swap output (giampaolo#1874)
9552b40
b2f8b62
Signed-off-by: Jake Omann <jomann@nagios.com>
Fix incorrect range for Solaris swap output (#1874) (#1914)
c3e63b4
Successfully merging a pull request may close this issue.
Platform
Bug description
It looks like on Solaris 11.4 the output of the
swap
command can have an "encrypted" column.which is likely causing an issue with this line here: https://github.com/giampaolo/psutil/blob/master/psutil/_pssunos.py#L158 and may be able to be remedied by using
line[3:4]
instead ofline[-2:]
The text was updated successfully, but these errors were encountered: