summaryrefslogtreecommitdiff
path: root/pysnmp
diff options
context:
space:
mode:
authorelie <elie>2007-02-14 10:09:22 +0000
committerelie <elie>2007-02-14 10:09:22 +0000
commit30251dd88215e7558905b5bbbcfe441801b616e2 (patch)
tree3e90d183b40c63c519844737c0de4f0bb423ffbc /pysnmp
parentae8d4a7fbfd1ee3141706082b20a2087b8873dc4 (diff)
downloadpysnmp-git-30251dd88215e7558905b5bbbcfe441801b616e2.tar.gz
added fuzzy logic to SnmpEngineTime.clone() to compute live value
Diffstat (limited to 'pysnmp')
-rw-r--r--pysnmp/smi/mibs/SNMP-FRAMEWORK-MIB.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/pysnmp/smi/mibs/SNMP-FRAMEWORK-MIB.py b/pysnmp/smi/mibs/SNMP-FRAMEWORK-MIB.py
index e686c1a3..ffb3ddee 100644
--- a/pysnmp/smi/mibs/SNMP-FRAMEWORK-MIB.py
+++ b/pysnmp/smi/mibs/SNMP-FRAMEWORK-MIB.py
@@ -40,9 +40,8 @@ class SnmpEngineID(OctetString, TextualConvention):
class SnmpEngineTime(Integer32):
def clone(self, value=None, tagSet=None, subtypeSpec=None):
- # XXX
-# if value is None and self._value is not None:
-# value = int(time.time())-self._value
+ if value is None and self._value is not None:
+ value = int(time.time())-self._value
return Integer32.clone(self, value, tagSet, subtypeSpec)
class SnmpMessageProcessingModel(Integer32):