]> granicus.if.org Git - icinga2/commit
Fix check_swap percentage calculation 6940/head
authorMichael Insel <michael@insel.email>
Fri, 8 Feb 2019 15:57:19 +0000 (16:57 +0100)
committerMichael Insel <michael@insel.email>
Fri, 8 Feb 2019 16:01:49 +0000 (17:01 +0100)
commit4961e9ba62eebcfc1cf22e1840b289e4eab067d2
treee547212526b2030676a83a35a9b17ea41621b465
parente555b2fa6d5a8f003ddf17a3728f651b7625c44e
Fix check_swap percentage calculation

This fixes the check_swap percentage calculation. When the pagefile is
turned off the available swap and total swap are 0 which leads to a
wrong calculation and misformated output.

refs #6913
plugins/check_swap.cpp