HBASE-9199 Call duration is not accurate

git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1513584 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
jxiang 2013-08-13 16:29:44 +00:00
parent 0a84963bb8
commit e06fa1d529
1 changed files with 2 additions and 1 deletions

View File

@ -160,7 +160,8 @@ public class RpcRetryingCaller<T> {
* @return Calculate how long a single call took
*/
private long singleCallDuration(final long expectedSleep) {
return (this.endTime - this.globalStartTime) + MIN_RPC_TIMEOUT + expectedSleep;
return (EnvironmentEdgeManager.currentTimeMillis() - this.globalStartTime)
+ MIN_RPC_TIMEOUT + expectedSleep;
}
/**