提交 dc7863ca 编写于 作者: D dvrzalik

Rename the method to getter style

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@13160 71c3de6d-444a-0410-be80-ed276b4c234a
上级 dbcaa236
......@@ -100,7 +100,7 @@ public class ResponseTimeMonitor extends NodeMonitor {
* Computes the average response time, by taking the time out into account.
*/
@Exported
public long average() {
public long getAverage() {
long total=0;
for (long l : past5) {
if(l<0) total += TIMEOUT;
......@@ -126,7 +126,7 @@ public class ResponseTimeMonitor extends NodeMonitor {
int fc = failureCount();
if(fc>0)
return Util.wrapToErrorSpan(Messages.ResponseTimeMonitor_TimeOut(fc));
return average()+"ms";
return getAverage()+"ms";
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册