Skip to content

Bug related to servers with no swap #3

@chrisfrazee-temboo

Description

@chrisfrazee-temboo

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions