-
Bug
-
Resolution: Fixed
-
Minor
-
1.617
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:
[JENKINS-29736] History chart duration is wrong
Description |
Original:
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: !Capture_before.PNG|thumbnail! 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: !Capture_after.PNG|thumbnail! |
New:
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: !Capture_before.PNG|thumbnail! In function getDisplayGraph() in [History.java|https://github.com/jenkinsci/junit-plugin/blob/master/src/main/java/hudson/tasks/junit/History.java#L114] 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: !Capture_after.PNG|thumbnail! |
Attachment | New: testresults.png [ 30656 ] |
Workflow | Original: JNJira [ 164811 ] | New: JNJira + In-Review [ 181697 ] |
Assignee | New: Iosif Gut [ igut ] |
Status | Original: Open [ 1 ] | New: In Progress [ 3 ] |
Resolution | New: Fixed [ 1 ] | |
Status | Original: In Progress [ 3 ] | New: Resolved [ 5 ] |
I was about to report this and then found this issue... here's my screenshot. 18 minutes = 1080 seconds.