]> granicus.if.org Git - icinga2/commit
Fix check_swap percentage calculation
authorMichael Insel <michael@insel.email>
Fri, 8 Feb 2019 15:57:19 +0000 (16:57 +0100)
committerMichael Friedrich <michael.friedrich@icinga.com>
Mon, 11 Feb 2019 12:16:55 +0000 (13:16 +0100)
commitdf68e65f0553f9ad314249930a08fb35cb065774
tree8a2c83eba30b2dceeb8e114845eb155d3254dd3b
parent362c7eb28a99b5a482fa3df393bc82970e795d4e
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

(cherry picked from commit 4961e9ba62eebcfc1cf22e1840b289e4eab067d2)
plugins/check_swap.cpp