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

Conflicts:
	hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/MetricsRegionServerWrapperImpl.java
This commit is contained in:
Guangxu Cheng 2019-10-16 14:25:14 +08:00 committed by Andrew Purtell
parent d16cbfe91d
commit 93a97ca475
No known key found for this signature in database
GPG Key ID: 8597754DD5365CCD
1 changed files with 3 additions and 3 deletions

View File

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