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:
parent
c9d3cb1c3b
commit
2a718cf3b8
|
@ -253,8 +253,7 @@ public class ServerLoad {
|
||||||
* @return number of requests per second received since the last report
|
* @return number of requests per second received since the last report
|
||||||
*/
|
*/
|
||||||
public double getRequestsPerSecond() {
|
public double getRequestsPerSecond() {
|
||||||
long msgInterval = serverLoad.getReportEndTime() - serverLoad.getReportStartTime();
|
return getNumberOfRequests();
|
||||||
return (msgInterval==0)?0.0:(getNumberOfRequests()/(double)msgInterval);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue