diff options
author | Ladue, David (dl3158) <dl3158@att.com> | 2018-08-17 12:05:49 -0400 |
---|---|---|
committer | Ladue, David (dl3158) <dl3158@att.com> | 2018-08-17 12:06:05 -0400 |
commit | 5f37a3be8fad7a2e795f508f7c216d679cebd28e (patch) | |
tree | 8553969e7ab49b2546ac15dde1b79e9b7c1d834c /snmptrap/mod/trapd_get_cbs_config.py | |
parent | b7fef09b274c7153720dbd18c7952d73889bfc9a (diff) |
updates to timeout variables
Change-Id: Ic7dfc585af74f3341b58ef53f16cb09f0cc94098
Issue-ID: DCAEGEN2-630
Signed-off-by: Ladue, David (dl3158) <dl3158@att.com>
Diffstat (limited to 'snmptrap/mod/trapd_get_cbs_config.py')
-rw-r--r-- | snmptrap/mod/trapd_get_cbs_config.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/snmptrap/mod/trapd_get_cbs_config.py b/snmptrap/mod/trapd_get_cbs_config.py index 1506dca..8bdff15 100644 --- a/snmptrap/mod/trapd_get_cbs_config.py +++ b/snmptrap/mod/trapd_get_cbs_config.py @@ -96,13 +96,13 @@ def get_cbs_config(): # recalc timeout, set default if not present try: - tds.timeout_seconds = tds.c_config['publisher']['http_timeout_milliseconds'] * 1000.0 + tds.timeout_seconds = tds.c_config['publisher']['http_milliseconds_timeout'] / 1000.0 except Exception as e: tds.timeout_seconds = 1.5 # recalc seconds_between_retries, set default if not present try: - tds.seconds_between_retries = tds.c_config['publisher']['http_milliseconds_between_retries'] * 1000.0 + tds.seconds_between_retries = tds.c_config['publisher']['http_milliseconds_between_retries'] / 1000.0 except Exception as e: tds.seconds_between_retries = .750 |