-
Notifications
You must be signed in to change notification settings - Fork 179
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
ZeroDivisionError when server has no swap #318
Labels
Comments
blogh
added a commit
to blogh/pg_activity
that referenced
this issue
Sep 26, 2022
In cases where there is no swap we don't display a percentage. The case with zero memory is also covered event if it's not realistic it doesn't cost much to do it. Issue dalibo#318
blogh
added a commit
to blogh/pg_activity
that referenced
this issue
Sep 26, 2022
In cases where there is no swap we don't display a percentage. The case with zero memory is also covered event if it's not realistic it doesn't cost much to do it. Issue dalibo#318
blogh
added a commit
to blogh/pg_activity
that referenced
this issue
Sep 26, 2022
In cases where there is no swap we don't display a percentage. The case with zero memory is also covered event if it's not realistic it doesn't cost much to do it. Issue dalibo#318
blogh
added a commit
that referenced
this issue
Sep 27, 2022
In cases where there is no swap we don't display a percentage. The case with zero memory is also covered event if it's not realistic it doesn't cost much to do it. Issue #318
blogh
added a commit
to blogh/pg_activity
that referenced
this issue
Sep 27, 2022
* Fix a division by zero where there is no swap (dalibo#318) (Reported by @iuridiniz)
Merged
blogh
added a commit
that referenced
this issue
Sep 27, 2022
* Fix a division by zero where there is no swap (#318) (Reported by @iuridiniz)
thanks for reporting this ! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello
Description
When the machine has no swap, the pg_activity does not open
Software version: 3.0.0
Steps to reproduce:
Configure a machine with no swap, launch pg_activity
Expected results:
pg_activity opens
Actual results:
pg_acrivity crashes with
ZeroDivisionError: division by zero
The text was updated successfully, but these errors were encountered: