aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--plugins/check_dig.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/check_dig.c b/plugins/check_dig.c
index 594aa46a..8c3fe6b8 100644
--- a/plugins/check_dig.c
+++ b/plugins/check_dig.c
@@ -90,7 +90,7 @@ main (int argc, char **argv)
usage_va(_("Could not parse arguments"));
/* dig applies the timeout to each try, so we need to work around this */
- int timeout_interval_dig = ceil((double) timeout_interval / (double) number_tries);
+ int timeout_interval_dig = timeout_interval / number_tries + number_tries;
/* get the command to run */
xasprintf (&command_line, "%s @%s -p %d %s -t %s %s %s +tries=%d +time=%d",