diff options
author | elie <elie> | 2007-11-23 10:33:58 +0000 |
---|---|---|
committer | elie <elie> | 2007-11-23 10:33:58 +0000 |
commit | c50264823a0c87f35acaa1c308cd835203b7a6bf (patch) | |
tree | 6c4af124ca0c27078314835fe22f0eebbb8aa2dd /pysnmp/entity/rfc3413 | |
parent | f7bdd504d3c01f5ac26a08a74e5e7db8a7e0fd19 (diff) | |
download | pysnmp-git-c50264823a0c87f35acaa1c308cd835203b7a6bf.tar.gz |
fix to response timeout roundup code
Diffstat (limited to 'pysnmp/entity/rfc3413')
-rw-r--r-- | pysnmp/entity/rfc3413/cmdgen.py | 2 | ||||
-rw-r--r-- | pysnmp/entity/rfc3413/ntforg.py | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/pysnmp/entity/rfc3413/cmdgen.py b/pysnmp/entity/rfc3413/cmdgen.py index e77992b4..7cdb35e0 100644 --- a/pysnmp/entity/rfc3413/cmdgen.py +++ b/pysnmp/entity/rfc3413/cmdgen.py @@ -161,7 +161,7 @@ class CommandGeneratorBase: contextName, pduVersion, reqPDU, - (processResponsePdu, timeout/100 + time.time(), cbCtx) + (processResponsePdu, float(timeout)/100 + time.time(), cbCtx) ) snmpEngine.transportDispatcher.jobStarted(id(self)) diff --git a/pysnmp/entity/rfc3413/ntforg.py b/pysnmp/entity/rfc3413/ntforg.py index ca8123d6..1a6a8aea 100644 --- a/pysnmp/entity/rfc3413/ntforg.py +++ b/pysnmp/entity/rfc3413/ntforg.py @@ -57,7 +57,7 @@ class NotificationOriginator: statusInformation['errorIndication'], cbCtx) return - + # 3.3.6a sendPduHandle = snmpEngine.msgAndPduDsp.sendPdu( snmpEngine, @@ -71,7 +71,7 @@ class NotificationOriginator: origContextName, origPduVersion, origPdu, - (self.processResponsePdu, origTimeout/100 + time.time(), + (self.processResponsePdu, float(origTimeout)/100 + time.time(), (cbFun, cbCtx)) ) @@ -226,7 +226,7 @@ class NotificationOriginator: contextName, pduVersion, pdu, - (self.processResponsePdu, timeout/100 + time.time(), + (self.processResponsePdu, float(timeout)/100 + time.time(), (cbFun, cbCtx)) ) |