diff options
author | elie <elie> | 2007-11-23 10:33:58 +0000 |
---|---|---|
committer | elie <elie> | 2007-11-23 10:33:58 +0000 |
commit | 12c3d4ede7d5b7a0872722d0caa7cf2f407fe036 (patch) | |
tree | bdf9c1b218182ba5161e44a0054db9adadc10a60 | |
parent | cd3bec575efb610bf183f5f890238b3d8fd728fc (diff) | |
download | pysnmp-12c3d4ede7d5b7a0872722d0caa7cf2f407fe036.tar.gz |
fix to response timeout roundup code
-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 e77992b..7cdb35e 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 ca8123d..1a6a8ae 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)) ) |