diff options
author | Jan Wagner <waja@cyconet.org> | 2014-01-30 10:02:04 +0100 |
---|---|---|
committer | Jan Wagner <waja@cyconet.org> | 2014-01-30 11:28:19 +0100 |
commit | e33ecc84c7ebdf4af3e8649a326e8a5acc9fe5b6 (patch) | |
tree | 0214ef79b076e3b9e5c6f88b959cfe0b053f529a | |
parent | 2aa6ce284451198616ef5a4f54d009c39d01a983 (diff) | |
download | monitoring-plugins-e33ecc84c7ebdf4af3e8649a326e8a5acc9fe5b6.tar.gz |
check_dig: stick with integer devision
This change saves us from having to link check_dig against "libm"
-rw-r--r-- | plugins/check_dig.c | 2 |
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) | |||
90 | usage_va(_("Could not parse arguments")); | 90 | usage_va(_("Could not parse arguments")); |
91 | 91 | ||
92 | /* dig applies the timeout to each try, so we need to work around this */ | 92 | /* dig applies the timeout to each try, so we need to work around this */ |
93 | int timeout_interval_dig = ceil((double) timeout_interval / (double) number_tries); | 93 | int timeout_interval_dig = timeout_interval / number_tries + number_tries; |
94 | 94 | ||
95 | /* get the command to run */ | 95 | /* get the command to run */ |
96 | xasprintf (&command_line, "%s @%s -p %d %s -t %s %s %s +tries=%d +time=%d", | 96 | xasprintf (&command_line, "%s @%s -p %d %s -t %s %s %s +tries=%d +time=%d", |