check_dig: stick with integer devision (e33ecc8)

Holger Weiß notifications at github.com
Thu Jan 30 18:28:23 CET 2014


Note that we're using `timeout_interval / number_tries + number_tries` (while your [interim solution][1] didn't add `number_tries` to the result).  Yes, the results will often be, err, "less correct" compared to the floating point division, but I think this might be good enough for us.  Especially as we didn't add a fancy `--retries` flag like you did :-)

But thanks for the hint!

[1]: https://github.com/nagios-plugins/nagios-plugins/commit/05a63d8c3e83cc006b6168efe61b9922f2d14ecf

---
Reply to this email directly or view it on GitHub:
https://github.com/monitoring-plugins/monitoring-plugins/commit/e33ecc84c7ebdf4af3e8649a326e8a5acc9fe5b6#commitcomment-5227804
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-plugins.org/archive/devel/attachments/20140130/d1d16a63/attachment.html>


More information about the Devel mailing list