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
This commit is contained in:
Michael Stack 2012-09-14 04:47:28 +00:00
parent c9d3cb1c3b
commit 2a718cf3b8
1 changed files with 1 additions and 2 deletions

View File

@ -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();
}
/**