Skip to content

Commit 9ee2ff6

Browse files
author
OpenShift Bot
committed
bump(github.com/openshift/origin-web-console): 617df3f22248be58636641dc4e7573c03e979b2e
1 parent 481d820 commit 9ee2ff6

File tree

1 file changed

+19
-15
lines changed

1 file changed

+19
-15
lines changed

pkg/assets/bindata.go

+19-15
Original file line numberDiff line numberDiff line change
@@ -4278,6 +4278,9 @@ switch (c) {
42784278
case "memory/usage":
42794279
return _.round(b.bytesToMiB(a.value), 2);
42804280

4281+
case "cpu/usage_rate":
4282+
return b.millicoresToCores(a.value);
4283+
42814284
case "network/rx_rate":
42824285
case "network/tx_rate":
42834286
return _.round(b.bytesToKiB(a.value), 2);
@@ -4340,11 +4343,6 @@ padding:{
43404343
left:0,
43414344
top:20,
43424345
bottom:0
4343-
},
4344-
tick:{
4345-
format:function(a) {
4346-
return d3.round(a, 3);
4347-
}
43484346
}
43494347
}
43504348
},
@@ -4357,7 +4355,8 @@ height:c ? 35 :175
43574355
tooltip:{
43584356
format:{
43594357
value:function(a) {
4360-
return d3.round(a, 2) + " " + b;
4358+
var c = "cores" === b ? 3 :2;
4359+
return d3.round(a, c) + " " + b;
43614360
}
43624361
}
43634362
}
@@ -4377,7 +4376,7 @@ b.push(a.start), f[d].push(e);
43774376
}), e.columns = [ b ].concat(_.values(f)), e;
43784377
},
43794378
formatUsage:function(a) {
4380-
return a < .01 ? "0" :a < 1 ? d3.format(".1r")(a) :d3.format(".2r")(a);
4379+
return a < .001 ? "0" :a < 1 ? d3.format(".1r")(a) :d3.format(".2r")(a);
43814380
},
43824381
redraw:function(b) {
43834382
a(function() {
@@ -5004,10 +5003,13 @@ var a = function(a) {
50045003
return a ? a / 1048576 :a;
50055004
}, b = function(a) {
50065005
return a ? a / 1024 :a;
5006+
}, c = function(a) {
5007+
return a ? a / 1e3 :a;
50075008
};
50085009
return {
50095010
bytesToMiB:a,
5010-
bytesToKiB:b
5011+
bytesToKiB:b,
5012+
millicoresToCores:c
50115013
};
50125014
}), angular.module("openshiftConsole").service("BreadcrumbsService", [ "$filter", "APIService", "Navigate", function(a, b, c) {
50135015
var d = a("annotation"), e = a("displayName"), f = function(a) {
@@ -12329,7 +12331,7 @@ break;
1232912331

1233012332
case "cpu/usage_rate":
1233112333
var d = D(b);
12332-
if (d) return _.round(1e3 * k(d));
12334+
if (d) return k(d);
1233312335
}
1233412336
return null;
1233512337
}
@@ -12419,7 +12421,7 @@ return !(l.metricsError || J > 1) && (l.pod && _.get(l, "options.selectedContain
1241912421
function w(a, b, c) {
1242012422
b.total = m(b.id), b.total && (l.hasLimits = !0);
1242112423
var d = _.get(c, "usage.value");
12422-
isNaN(d) && (d = 0), a.convert && (d = a.convert(d)), b.used = _.round(d), b.total && (b.available = _.round(b.total - d)), a.totalUsed += b.used;
12424+
isNaN(d) && (d = 0), a.convert && (d = a.convert(d)), b.used = d3.round(d, a.usagePrecision), b.total && (b.available = d3.round(b.total - d, a.usagePrecision)), a.totalUsed += b.used;
1242312425
}
1242412426
function x(a, b) {
1242512427
l.noData = !1;
@@ -12471,9 +12473,10 @@ data:[]
1247112473
} ]
1247212474
}), _.includes(l.includedMetrics, "cpu") && l.metrics.push({
1247312475
label:"CPU",
12474-
units:"millicores",
12476+
units:"cores",
1247512477
chartPrefix:"cpu-",
12476-
convert:_.round,
12478+
convert:h.millicoresToCores,
12479+
usagePrecision:3,
1247712480
containerMetric:!0,
1247812481
datasets:[ {
1247912482
id:"cpu/usage_rate",
@@ -12522,8 +12525,8 @@ widht:175
1252212525
}
1252312526
};
1252412527
}, I = function(a) {
12525-
var b = a.chartPrefix + l.uniqueID + "-sparkline";
12526-
return i.getDefaultSparklineConfig(b, a.units);
12528+
var b = a.chartPrefix + l.uniqueID + "-sparkline", c = i.getDefaultSparklineConfig(b, a.units);
12529+
return 1 === a.datasets.length && _.set(c, "legend.show", !1), c;
1252712530
}, J = 0;
1252812531
l.$watch("options", function() {
1252912532
_.each(l.metrics, function(a) {
@@ -12680,7 +12683,8 @@ type:"pod_container",
1268012683
chartID:"memory-" + b.uniqueID
1268112684
}, {
1268212685
label:"CPU",
12683-
units:"millicores",
12686+
units:"cores",
12687+
convert:g.millicoresToCores,
1268412688
descriptor:"cpu/usage_rate",
1268512689
type:"pod_container",
1268612690
chartID:"cpu-" + b.uniqueID

0 commit comments

Comments
 (0)