check_dig: stick with integer devision (e33ecc8)
abrist
notifications at github.com
Thu Jan 30 21:35:56 CET 2014
It may be good enough, but most timeout values other than those that produce 0 from the division (less than 3) will cause dig to only timeout twice with the patch. I think the disagreement is philosophical at this point: I would rather allow the user to control the behavior - if they have a slow server or an intermittent one, they may wish for more retries etc. So we will stick with floating point division, though this does work just fine as well and escapes having to pull in the math libraries.
Cheers all.
@willix. no bitwise thank you, though it is clever :)
---
Reply to this email directly or view it on GitHub:
https://github.com/monitoring-plugins/monitoring-plugins/commit/e33ecc84c7ebdf4af3e8649a326e8a5acc9fe5b6#commitcomment-5230439
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-plugins.org/archive/devel/attachments/20140130/28addc8e/attachment.html>
More information about the Devel
mailing list