Patches for Miscalculating thresholds check_disk [sf#1643463] [#747]