HDDS-2134. OM Metrics graphs include empty request type

Closes #1451
This commit is contained in:
Doroszlai, Attila 2019-09-18 14:09:15 +02:00 committed by Márton Elek
parent 15fded2788
commit 419dd0faf6
No known key found for this signature in database
GPG Key ID: D51EA8F00EE79B28
1 changed files with 1 additions and 1 deletions

View File

@ -69,7 +69,7 @@
var groupedMetrics = {others: [], nums: {}};
var metrics = result.data.beans[0]
for (var key in metrics) {
var numericalStatistic = key.match(/Num([A-Z][a-z]+)(.+?)(Fails)?$/);
var numericalStatistic = key.match(/Num([A-Z][a-z]+)([A-Z].+?)(Fails)?$/);
if (numericalStatistic) {
var type = numericalStatistic[1];
var name = numericalStatistic[2];