[release] v0.12.0-unstable23

This commit is contained in:
Yann Stepienik 2023-10-30 23:05:21 +00:00
parent b8ad765d1b
commit d247708d73
3 changed files with 3 additions and 5 deletions

View file

@ -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;
}

View file

@ -1,6 +1,6 @@
{
"name": "cosmos-server",
"version": "0.12.0-unstable22",
"version": "0.12.0-unstable23",
"description": "",
"main": "test-server.js",
"bugs": {

View file

@ -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