Changing refresh intervals
This commit is contained in:
parent
6042507ab7
commit
ca6f65bae2
+1
-1
@@ -8,7 +8,7 @@
|
||||
<link rel="stylesheet" href="/waterfall.css">
|
||||
<title>Waterfall</title>
|
||||
</head>
|
||||
<body>
|
||||
<body background="#FFF">
|
||||
<div id="app"></div>
|
||||
<script type="module" src="/src/main.js"></script>
|
||||
</body>
|
||||
|
||||
+1
-1
@@ -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,
|
||||
|
||||
@@ -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];
|
||||
|
||||
@@ -67,6 +67,7 @@ export default {
|
||||
|
||||
this.data = payload;
|
||||
this.chart.data(payload);
|
||||
this.chart.reresh();
|
||||
})
|
||||
.catch(err => { throw err });
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user