Skip to content

Commit

Permalink
Fixed [JENKINS-20045] an issue related to graph display when messages…
Browse files Browse the repository at this point in the history
… becomes 0.
  • Loading branch information
MadsNielsen committed Oct 16, 2013
1 parent 83cd607 commit 116ed45
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Expand Up @@ -192,6 +192,7 @@ public void doReportGraphs(StaplerRequest req, StaplerResponse rsp) throws IOExc
HashMap<StatusCategory,Boolean> drawMatrix = _doDrawThresholds(req, rsp);

if(notifier != null) {
Integer tSetting = Integer.parseInt(req.getParameter("tsetting"));
String className = req.getParameter("graph");
PRQAGraph graph = notifier.getGraph(className);
PRQAStatusCollection collection = new PRQAStatusCollection();
Expand All @@ -210,7 +211,7 @@ public void doReportGraphs(StaplerRequest req, StaplerResponse rsp) throws IOExc
{
PRQAComplianceStatus cs = (PRQAComplianceStatus)stat;
if(cat.equals(StatusCategory.Messages)) {
res = cs.getMessagesWithinThreshold();
res = cs.getMessageCount(tSetting);
} else {
res = stat.getReadout(cat);
}
Expand Down
Expand Up @@ -61,6 +61,7 @@
import org.kohsuke.stapler.StaplerRequest;
import org.kohsuke.stapler.export.Exported;

//TODO: I intend to REMOVE all the deprecated fields in the realease for the new PRQA API
public class PRQANotifier extends Publisher {
private static final Logger log = Logger.getLogger(PRQANotifier.class.getName());
private PrintStream out;
Expand Down

0 comments on commit 116ed45

Please sign in to comment.