From ca6f65bae2d1a4331addfb82230fa2d6f4bff2b6 Mon Sep 17 00:00:00 2001
From: Kinesin Data Technologies Incorporated
<93931750+kinesintech@users.noreply.github.com>
Date: Fri, 7 Oct 2022 17:53:23 -0300
Subject: [PATCH] Changing refresh intervals
---
webui/index.html | 2 +-
webui/src/App.vue | 2 +-
webui/src/components/GlobalSettings.vue | 2 +-
webui/src/components/Timeline.vue | 1 +
4 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/webui/index.html b/webui/index.html
index 527af22..cc62f88 100644
--- a/webui/index.html
+++ b/webui/index.html
@@ -8,7 +8,7 @@
Waterfall
-
+
diff --git a/webui/src/App.vue b/webui/src/App.vue
index f9a619b..b7e6b23 100644
--- a/webui/src/App.vue
+++ b/webui/src/App.vue
@@ -6,7 +6,7 @@ import SegmentDetails from './components/SegmentDetails.vue'
export default {
data() {
return {
- refreshSeconds: 15, // How often to refresh
+ refreshSeconds: 1, // How often to refresh
waterfallURL: 'http://localhost:2503',
activeSegment: null,
maxDisplayIntervals: 500,
diff --git a/webui/src/components/GlobalSettings.vue b/webui/src/components/GlobalSettings.vue
index f81a51f..884f157 100644
--- a/webui/src/components/GlobalSettings.vue
+++ b/webui/src/components/GlobalSettings.vue
@@ -11,7 +11,7 @@ export default {
emits: ['update-refresh-interval', 'update-waterfall-url', 'update-max-intervals'],
computed: {
validRefreshIntervals() {
- return [5, 10, 15, 30, 60, 300, 600];
+ return [1, 5, 10, 15, 30, 60, 300, 600];
},
validDisplayIntervals() {
return [0, 100, 250, 500, 1000, 1500];
diff --git a/webui/src/components/Timeline.vue b/webui/src/components/Timeline.vue
index 447dec3..07e565e 100644
--- a/webui/src/components/Timeline.vue
+++ b/webui/src/components/Timeline.vue
@@ -67,6 +67,7 @@ export default {
this.data = payload;
this.chart.data(payload);
+ this.chart.reresh();
})
.catch(err => { throw err });
},