mirror of
https://github.com/monitoring-plugins/monitoring-plugins.git
synced 2026-06-10 09:10:08 -04:00
check_dig: stick with integer devision
This change saves us from having to link check_dig against "libm"
This commit is contained in:
parent
2aa6ce2844
commit
e33ecc84c7
1 changed files with 1 additions and 1 deletions
|
|
@ -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",
|
||||
|
|
|
|||
Loading…
Reference in a new issue