diff options
author | elie <elie> | 2007-02-14 10:09:22 +0000 |
---|---|---|
committer | elie <elie> | 2007-02-14 10:09:22 +0000 |
commit | 30251dd88215e7558905b5bbbcfe441801b616e2 (patch) | |
tree | 3e90d183b40c63c519844737c0de4f0bb423ffbc /pysnmp | |
parent | ae8d4a7fbfd1ee3141706082b20a2087b8873dc4 (diff) | |
download | pysnmp-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.py | 5 |
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): |