Skip to content

Commit f5184ea

Browse files
committed
Fix metric field reset between to configuration
1 parent 16a7563 commit f5184ea

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

dist/query_ctrl.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/query_ctrl.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "skydive-datasource",
33
"private": true,
4-
"version": "1.0.1",
4+
"version": "1.1.0",
55
"description": "",
66
"main": "index.js",
77
"scripts": {

src/query_ctrl.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ export class SkydiveDatasourceQueryCtrl extends QueryCtrl {
7575
this.prevWorked = false;
7676

7777
// flow metrics ?
78-
var flowMetrics = false;
78+
var flowMetrics = this.flowMetrics;
7979

8080
var target = {
8181
gremlin: this.target.gremlin
@@ -95,7 +95,7 @@ export class SkydiveDatasourceQueryCtrl extends QueryCtrl {
9595
_.forEach(result.data[0], (metrics, uuid) => {
9696
_.forEach(metrics, metric => {
9797
_.forOwn(metric, (value, key) => {
98-
if (key == "ABBytes") {
98+
if (key === "ABBytes" || key === "BABytes") {
9999
flowMetrics = true;
100100
}
101101
this.metricFields.push({text: key, value: key});

0 commit comments

Comments
 (0)