mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-16 21:42:27 +00:00
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:
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";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user