mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-17 05:52:26 +00:00
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:
1 parent
4e254c02c7
commit
705057b78f
1 file changed
+8
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user