jtop/jtop.py
def _decode(self, data):
        """
        Internal decode function to decode and refactoring data
        """
        self._stats = data
        # -- ENGINES --
        self._engine._update(data['engines'])
        # -- SWAP --
        self._swap._update(data['swap'])
        # -- FAN --
        self._fan._update(data['fan'])
        # -- JETSON_CLOCKS --
        if 'jc' in data:
            self._jc._update(data['jc'])
        # -- NVP Model --
        if 'nvp' in data:
            self._nvp._update(data['nvp'])
        # Set trigger
        self._trigger.set()
        # Notify all observers
        for observer in self._observers:
            # Call all observer in list
            observer(self)

        Internal decode function to decode and refactoring data
        
Internal decode function to decode and refactoring data
Internal decode function to decode and refactoring data
def _decode(self, data):
        self._stats = data
        self._engine._update(data['engines'])
        self._swap._update(data['swap'])
        self._fan._update(data['fan'])
        if 'jc' in data:
            self._jc._update(data['jc'])
        if 'nvp' in data:
            self._nvp._update(data['nvp'])
        self._trigger.set()
        for observer in self._observers:
            observer(self)
def _decode ( self , data ) : self . _stats = data self . _engine . _update ( data [ 'engines' ] ) self . _swap . _update ( data [ 'swap' ] ) self . _fan . _update ( data [ 'fan' ] ) if 'jc' in data : self . _jc . _update ( data [ 'jc' ] ) if 'nvp' in data : self . _nvp . _update ( data [ 'nvp' ] ) self . _trigger . set ( ) for observer in self . _observers : observer ( self )
Internal decode function to decode and refactoring data
Internal decode function to decode and refactoring data
"""
        Internal decode function to decode and refactoring data
        """ # -- ENGINES -- # -- SWAP -- # -- FAN -- # -- JETSON_CLOCKS -- # -- NVP Model -- # Set trigger # Notify all observers # Call all observer in list
self
data