Skip to content

Commit

Permalink
* fix add delta as aggregation point
Browse files Browse the repository at this point in the history
  • Loading branch information
YehonatanVonage committed Nov 6, 2017
1 parent df70a29 commit 6847b5d
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 9 deletions.
2 changes: 1 addition & 1 deletion dist/module.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions dist/plugin.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
{"name": "Warning State", "path": "img/warning.png"},
{"name": "Critical State", "path": "img/error.png"}
],
"version": "1.0.5",
"updated": "2017-4-27"
"version": "1.0.6",
"updated": "2017-11-6"
},

"dependencies": {
Expand Down
6 changes: 5 additions & 1 deletion dist/status_ctrl.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/status_ctrl.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "vonage-status-panel",
"private": true,
"version": "1.0.5",
"version": "1.0.6",
"description": "",
"repository": {
"type": "git",
Expand Down
4 changes: 2 additions & 2 deletions src/plugin.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
{"name": "Warning State", "path": "img/warning.png"},
{"name": "Critical State", "path": "img/error.png"}
],
"version": "1.0.5",
"updated": "2017-4-27"
"version": "1.0.6",
"updated": "2017-11-6"
},

"dependencies": {
Expand Down
3 changes: 2 additions & 1 deletion src/status_ctrl.js
Original file line number Diff line number Diff line change
Expand Up @@ -240,8 +240,9 @@ export class StatusPluginCtrl extends MetricsPanelCtrl {
value = _.min(s.datapoints, (point) => { return point[0]; })[0];
value = s.stats.min;
break;
case: 'Delta':
case 'Delta':
value = s.datapoints[s.datapoints.length - 1][0] - s.datapoints[0][0];
value = s.stats.diff;
break;
case 'Sum':
value = 0;
Expand Down

0 comments on commit 6847b5d

Please sign in to comment.