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:
parent
d16cbfe91d
commit
93a97ca475
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue