From 40041d60802a856b8ac575fb7ebd1ba70f758e1f Mon Sep 17 00:00:00 2001 From: tobi-wan-kenobi Date: Sun, 4 Sep 2022 09:41:20 +0200 Subject: [PATCH] Revert "[core/output] rate-limit output (see #917)" (did not fix the issue) This reverts commit b90346424b0615e58ac9d166d87a17cad39c4bb0. --- bumblebee_status/core/output.py | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/bumblebee_status/core/output.py b/bumblebee_status/core/output.py index 21f74ae..cee579f 100644 --- a/bumblebee_status/core/output.py +++ b/bumblebee_status/core/output.py @@ -1,7 +1,6 @@ import sys import json import time -import datetime import core.theme import core.event @@ -146,7 +145,6 @@ class i3(object): self.__content = {} self.__theme = theme self.__config = config - self.__previous_draw = datetime.datetime.min core.event.register("update", self.update) core.event.register("start", self.draw, "start") core.event.register("draw", self.draw, "statusline") @@ -178,14 +176,6 @@ class i3(object): self.__content[widget_id]["minimized"] = not self.__content[widget_id]["minimized"] def draw(self, what, args=None): - - if what == "statusline": - now = datetime.datetime.now() - prev = self.__previous_draw - self.__previous_draw = now - if (now - prev).total_seconds() < 0.03: - return - cb = getattr(self, what) data = cb(args) if args else cb() if "blocks" in data: