Explorar o código

HDDS-2134. OM Metrics graphs include empty request type

Closes #1451
Doroszlai, Attila %!s(int64=5) %!d(string=hai) anos
pai
achega
419dd0faf6

+ 1 - 1
hadoop-ozone/ozone-manager/src/main/resources/webapps/ozoneManager/ozoneManager.js

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