HBASE-20626 Change the value of "Requests Per Second" on WEBUI

This commit is contained in:
Guangxu Cheng 2019-10-16 14:25:14 +08:00
parent 7924ba39e7
commit 17495d812d
1 changed files with 1 additions and 1 deletions

View File

@ -797,7 +797,7 @@ class MetricsRegionServerWrapperImpl
}
// If we've time traveled keep the last requests per second.
if ((currentTime - lastRan) > 0) {
long currentRequestCount = getTotalRequestCount();
long currentRequestCount = getTotalRowActionRequestCount();
requestsPerSecond = (currentRequestCount - lastRequestCount) /
((currentTime - lastRan) / 1000.0);
lastRequestCount = currentRequestCount;