Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-29736

History chart duration is wrong

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      On the history chart of test results, the duration displayed on the Y axis is not correct, as you can see in the below image:

      In function getDisplayGraph() in History.java file line 114, removing divide by 1000 solves the problem.

      Replacing line
      data.add(((double) o.getDuration()) / (1000), "", new ChartLabel(o) {
      with:
      data.add(((double) o.getDuration()), "", new ChartLabel(o) {
      results in this chart:

        Attachments

        1. Capture_after.PNG
          Capture_after.PNG
          54 kB
        2. Capture_before.PNG
          Capture_before.PNG
          50 kB
        3. testresults.png
          testresults.png
          77 kB

          Activity

          Hide
          smd Stefan Drissen added a comment - - edited

          I was about to report this and then found this issue... here's my screenshot. 18 minutes = 1080 seconds.

          Show
          smd Stefan Drissen added a comment - - edited I was about to report this and then found this issue... here's my screenshot. 18 minutes = 1080 seconds.
          Hide
          igut Iosif Gut added a comment -

          The fix mentioned in the description was submitted via pull request: https://github.com/jenkinsci/junit-plugin/pull/61

          Show
          igut Iosif Gut added a comment - The fix mentioned in the description was submitted via pull request: https://github.com/jenkinsci/junit-plugin/pull/61
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Iosif Gut
          Path:
          src/main/java/hudson/tasks/junit/History.java
          http://jenkins-ci.org/commit/junit-plugin/a88daae579a603c24aba4546b1704462eae32ce1
          Log:
          [FIXED JENKINS-29736] removed devide by 1000

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Iosif Gut Path: src/main/java/hudson/tasks/junit/History.java http://jenkins-ci.org/commit/junit-plugin/a88daae579a603c24aba4546b1704462eae32ce1 Log: [FIXED JENKINS-29736] removed devide by 1000
          Hide
          igut Iosif Gut added a comment -

          Verified!

          Show
          igut Iosif Gut added a comment - Verified!

            People

            • Assignee:
              igut Iosif Gut
              Reporter:
              igut Iosif Gut
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: