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

Bug related to servers with no swap #3

Open
chrisfrazee-temboo opened this issue Apr 22, 2014 · 1 comment
Open

Bug related to servers with no swap #3

chrisfrazee-temboo opened this issue Apr 22, 2014 · 1 comment

Comments

@chrisfrazee-temboo
Copy link

If you have servers without swap, the following two lines will fail, with failure to devide by zero. There needs to be a check to see if:

if ($mem->{swaptotal} == 0)

and some logic to just set the value to zero, rather than try to divide by it.
Regards,
Chris Frazee

@stephenhyde
Copy link

@chrisfrazee-temboo Do you know what lines this pertain to and what file? I think I am experiencing this bug currently as I been getting a "disconnect invalidates 1 active statement handle (either destroy statement handles or call finish on them before disconnecting)" which this bug would create if the statement was trying to divide by 0

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

No branches or pull requests

2 participants