From 2a718cf3b8ac553fc52bc20d79ccd508744179c3 Mon Sep 17 00:00:00 2001 From: Michael Stack Date: Fri, 14 Sep 2012 04:47:28 +0000 Subject: [PATCH] HBASE-6780 On the master status page the Number of Requests per second is incorrect for RegionServer's git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1384648 13f79535-47bb-0310-9956-ffa450edef68 --- .../src/main/java/org/apache/hadoop/hbase/ServerLoad.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/hbase-server/src/main/java/org/apache/hadoop/hbase/ServerLoad.java b/hbase-server/src/main/java/org/apache/hadoop/hbase/ServerLoad.java index 15e5f503012..55a02b7b319 100644 --- a/hbase-server/src/main/java/org/apache/hadoop/hbase/ServerLoad.java +++ b/hbase-server/src/main/java/org/apache/hadoop/hbase/ServerLoad.java @@ -253,8 +253,7 @@ public class ServerLoad { * @return number of requests per second received since the last report */ public double getRequestsPerSecond() { - long msgInterval = serverLoad.getReportEndTime() - serverLoad.getReportStartTime(); - return (msgInterval==0)?0.0:(getNumberOfRequests()/(double)msgInterval); + return getNumberOfRequests(); } /**