naparuba / check-linux-by-ssh

Shinken checks designed to be run without installing something on the distant linux (aside ssh keys of course!)
MIT License
43 stars 48 forks source link

memory check: fix division by 0 when swap_total==0 #22

Closed yadutaf closed 7 years ago

yadutaf commented 9 years ago

Memory check fails when swap_total==0 and invoked -s which is the default. This commit ensures we have valid data before rendering the results.

naparuba commented 9 years ago

Thanks a lot :)