HDDS-2141. Missing total number of operations

Closes #1462
This commit is contained in:
Doroszlai, Attila 2019-09-19 14:11:44 +02:00 committed by Márton Elek
parent 28913f733e
commit c9900a01d1
No known key found for this signature in database
GPG Key ID: D51EA8F00EE79B28
2 changed files with 4 additions and 2 deletions

View File

@ -20,7 +20,7 @@
<h2>{{type}}</h2>
<div class="container">
<div class="col-md-6">
<h3>Requests ({{numbers.ops}} ops)</h3>
<h3>Requests ({{numbers.ops || numbers.total}} ops)</h3>
<nvd3 options="$ctrl.graphOptions"
data="numbers.all"></nvd3>
</div>

View File

@ -76,7 +76,8 @@
var failed = numericalStatistic[3];
groupedMetrics.nums[type] = groupedMetrics.nums[type] || {
failures: [],
all: []
all: [],
total: 0,
};
if (failed) {
groupedMetrics.nums[type].failures.push({
@ -87,6 +88,7 @@
if (name == "Ops") {
groupedMetrics.nums[type].ops = metrics[key]
} else {
groupedMetrics.nums[type].total += metrics[key];
groupedMetrics.nums[type].all.push({
key: name,
value: metrics[key]