Changing refresh intervals
This commit is contained in:
parent
6042507ab7
commit
ca6f65bae2
+1
-1
@@ -8,7 +8,7 @@
|
|||||||
<link rel="stylesheet" href="/waterfall.css">
|
<link rel="stylesheet" href="/waterfall.css">
|
||||||
<title>Waterfall</title>
|
<title>Waterfall</title>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body background="#FFF">
|
||||||
<div id="app"></div>
|
<div id="app"></div>
|
||||||
<script type="module" src="/src/main.js"></script>
|
<script type="module" src="/src/main.js"></script>
|
||||||
</body>
|
</body>
|
||||||
|
|||||||
+1
-1
@@ -6,7 +6,7 @@ import SegmentDetails from './components/SegmentDetails.vue'
|
|||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
refreshSeconds: 15, // How often to refresh
|
refreshSeconds: 1, // How often to refresh
|
||||||
waterfallURL: 'http://localhost:2503',
|
waterfallURL: 'http://localhost:2503',
|
||||||
activeSegment: null,
|
activeSegment: null,
|
||||||
maxDisplayIntervals: 500,
|
maxDisplayIntervals: 500,
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ export default {
|
|||||||
emits: ['update-refresh-interval', 'update-waterfall-url', 'update-max-intervals'],
|
emits: ['update-refresh-interval', 'update-waterfall-url', 'update-max-intervals'],
|
||||||
computed: {
|
computed: {
|
||||||
validRefreshIntervals() {
|
validRefreshIntervals() {
|
||||||
return [5, 10, 15, 30, 60, 300, 600];
|
return [1, 5, 10, 15, 30, 60, 300, 600];
|
||||||
},
|
},
|
||||||
validDisplayIntervals() {
|
validDisplayIntervals() {
|
||||||
return [0, 100, 250, 500, 1000, 1500];
|
return [0, 100, 250, 500, 1000, 1500];
|
||||||
|
|||||||
@@ -67,6 +67,7 @@ export default {
|
|||||||
|
|
||||||
this.data = payload;
|
this.data = payload;
|
||||||
this.chart.data(payload);
|
this.chart.data(payload);
|
||||||
|
this.chart.reresh();
|
||||||
})
|
})
|
||||||
.catch(err => { throw err });
|
.catch(err => { throw err });
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user