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
This commit is contained in:
dvrzalik committed 2008-11-11 22:41:12 +00:00
1 parent dbcaa236dc
commit dc7863ca07
1 file changed
+2 -2
@@ -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";
}
}