[release] v0.12.0-unstable23
This commit is contained in:
parent
b8ad765d1b
commit
d247708d73
|
@ -159,7 +159,7 @@ const TableComponent = ({ title, data, displayMax, render, xAxis, slot, zoom}) =
|
|||
}
|
||||
})
|
||||
.reduce((a, b) => {
|
||||
if (!b) {
|
||||
if (typeof b === "undefined" || b === null) {
|
||||
return a;
|
||||
}
|
||||
if (item.AggloType == "min") {
|
||||
|
@ -174,7 +174,7 @@ const TableComponent = ({ title, data, displayMax, render, xAxis, slot, zoom}) =
|
|||
}
|
||||
}, 0);
|
||||
|
||||
if (item.AggloType == "avg") {
|
||||
if (item.AggloType == "avg" && avgIndex) {
|
||||
v = v / avgIndex;
|
||||
}
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "cosmos-server",
|
||||
"version": "0.12.0-unstable22",
|
||||
"version": "0.12.0-unstable23",
|
||||
"description": "",
|
||||
"main": "test-server.js",
|
||||
"bugs": {
|
||||
|
|
|
@ -38,8 +38,6 @@ var lock = make(chan bool, 1)
|
|||
func MergeMetric(SetOperation string, currentValue int, newValue int, avgIndex int) int {
|
||||
if SetOperation == "" {
|
||||
return newValue
|
||||
} else if newValue == 0 {
|
||||
return currentValue
|
||||
} else if SetOperation == "max" {
|
||||
if newValue > currentValue {
|
||||
return newValue
|
||||
|
|
Loading…
Reference in a new issue