'Detect suspicious high activity, i.e. the number of resets exceeds the maximum limit set
on the watchdog timeframe.
Flush old activity history'

def _is_frenetic(self):

    now = time.time()
    while (self._restarts and (self._restarts[0] < (now - self._RESTART_TIMEFRAME))):
        self._restarts.popleft()
    return (len(self._restarts) > self._max_resets)
