added timestamp check.

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@1568 71c3de6d-444a-0410-be80-ed276b4c234a
This commit is contained in:
kohsuke committed 2006-12-30 22:16:43 +00:00
1 parent 4e254c02c7
commit 705057b78f
1 file changed
+8
+8
View File
@@ -529,10 +529,18 @@ public abstract class Job<JobT extends Job<JobT,RunT>, RunT extends Run<JobT,Run
* Returns the graph that shows how long each build took.
*/
public void doBuildTimeGraph( StaplerRequest req, StaplerResponse rsp ) throws IOException {
if(req.checkIfModified(getLastBuild().getTimestamp(),rsp))
return;
ChartUtil.generateGraph(req,rsp, createBuildTimeTrendChart(),500,400);
}
/**
* Returns the clickable map for the build time graph.
* Loaded lazily by AJAX.
*/
public void doBuildTimeGraphMap( StaplerRequest req, StaplerResponse rsp ) throws IOException {
if(req.checkIfModified(getLastBuild().getTimestamp(),rsp))
return;
ChartUtil.generateClickableMap(req,rsp, createBuildTimeTrendChart(),500,400);
}