From 6178592d1056e61b12ad99376031e372c4600250 Mon Sep 17 00:00:00 2001 From: Sami Mokaddem Date: Mon, 8 Jul 2024 10:06:50 +0200 Subject: [PATCH] chg: [app:live-logs] Increased refresh frequency of activity bars --- db.py | 6 +++--- src/components/TheLiveLogs.vue | 9 +++++++-- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/db.py b/db.py index dd69865..5efc942 100644 --- a/db.py +++ b/db.py @@ -16,9 +16,9 @@ PROGRESS = { NOTIFICATION_BUFFER_SIZE = 30 NOTIFICATION_MESSAGES = collections.deque([], NOTIFICATION_BUFFER_SIZE) -NOTIFICATION_HISTORY_BUFFER_RESOLUTION_PER_MIN = 3 -NOTIFICATION_HISTORY_BUFFER_TIMESPAN_MIN = 60 -NOTIFICATION_HISTORY_FREQUENCY = NOTIFICATION_HISTORY_BUFFER_TIMESPAN_MIN / NOTIFICATION_HISTORY_BUFFER_RESOLUTION_PER_MIN +NOTIFICATION_HISTORY_BUFFER_RESOLUTION_PER_MIN = 12 +NOTIFICATION_HISTORY_BUFFER_TIMESPAN_MIN = 20 +NOTIFICATION_HISTORY_FREQUENCY = 60 / NOTIFICATION_HISTORY_BUFFER_RESOLUTION_PER_MIN notification_history_size = NOTIFICATION_HISTORY_BUFFER_RESOLUTION_PER_MIN * NOTIFICATION_HISTORY_BUFFER_TIMESPAN_MIN NOTIFICATION_HISTORY = collections.deque([], notification_history_size) NOTIFICATION_HISTORY.extend([0] * notification_history_size) diff --git a/src/components/TheLiveLogs.vue b/src/components/TheLiveLogs.vue index 9e78b38..c1b64cc 100644 --- a/src/components/TheLiveLogs.vue +++ b/src/components/TheLiveLogs.vue @@ -33,7 +33,12 @@ blur: 3, color: '#000', opacity: 0.45 - } + }, + animations: { + enabled: true, + easing: 'easeinout', + speed: 200, + }, }, plotOptions: { bar: { @@ -47,7 +52,7 @@ }, tooltip: { enabled: false, - } + }, } watch(verbose, (newValue) => {