提交 41390b63 编写于 作者: K kohsuke

fixed JDK6 dependency. See, this stuff actually works.

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@13260 71c3de6d-444a-0410-be80-ed276b4c234a
上级 7e4b1726
......@@ -5,6 +5,7 @@ import hudson.model.Computer;
import hudson.remoting.Callable;
import hudson.remoting.Future;
import hudson.util.TimeUnit2;
import hudson.util.IOException2;
import net.sf.json.JSONObject;
import org.kohsuke.stapler.StaplerRequest;
......@@ -38,7 +39,7 @@ public class ResponseTimeMonitor extends NodeMonitor {
long end = System.nanoTime();
d = new Data(old,TimeUnit2.NANOSECONDS.toMillis(end-start));
} catch (ExecutionException e) {
throw new IOException(e.getCause()); // I don't think this is possible
throw new IOException2(e.getCause()); // I don't think this is possible
} catch (TimeoutException e) {
// special constant to indicate that the processing timed out.
d = new Data(old,-1L);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册