summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 764a984)
raw | patch | inline | side by side (parent: 764a984)
author | loginator17 <loginator17@users.noreply.github.com> | |
Mon, 27 Oct 2014 13:00:04 +0000 (13:00 +0000) | ||
committer | loginator17 <loginator17@users.noreply.github.com> | |
Mon, 27 Oct 2014 13:00:04 +0000 (13:00 +0000) |
Changing default post timeout to plugin's interval and fixing low speed interval to use correct method for plugin interval (plugin_get_interval())
src/write_http.c | patch | blob | history |
diff --git a/src/write_http.c b/src/write_http.c
index b36a6978d7027a8acaf688e8b4cea98607b8662b..a48cdf33db1aeabdd1deae5c0b4a4225fe281f6c 100644 (file)
--- a/src/write_http.c
+++ b/src/write_http.c
if(cb->abort_on_slow)
{
- cb->interval = CDTIME_T_TO_TIME_T(cf_get_default_interval ());
+ cb->interval = CDTIME_T_TO_TIME_T(plugin_get_interval());
+ }
+ if(cb->post_timeout == 0)
+ {
+ //setting default timeout to plugin interval.
+ cb->post_timeout = CDTIME_T_TO_TIME_T(plugin_get_interval());
}
/* Determine send_buffer_size. */