parameters: (self)
docstring: Look for each client if it is still alive
docstring_summary: Look for each client if it is still alive
docstring_tokens: Look for each client if it is still alive
function: def _check_dead_clients(self):
          """ Look for each client if it is still alive
          """
          msg = "Looking for dead clients..."
          now = time()
          dead_clients = False
          for client in self._client_list:
              dead_time = now - 60 - 2*60*client['interval']
              if client['alive'] == ALIVE and client['last_seen'] < dead_time:
                  client['alive'] = DEAD
                  msg += "Client %s died" % client['id']
                  self._dead_client_list.append(client)
                  self._client_list.remove(client)
                  dead_clients = True
          self.log.info(msg)
          if dead_clients:
              self._display_clients()
function_tokens: def _check_dead_clients ( self ) : msg = "Looking for dead clients..." now = time ( ) dead_clients = False for client in self . _client_list : dead_time = now - 60 - 2 * 60 * client [ 'interval' ] if client [ 'alive' ] == ALIVE and client [ 'last_seen' ] < dead_time : client [ 'alive' ] = DEAD msg += "Client %s died" % client [ 'id' ] self . _dead_client_list . append ( client ) self . _client_list . remove ( client ) dead_clients = True self . log . info ( msg ) if dead_clients : self . _display_clients ( )