Skip to content

Commit 1b70f4d

Browse files
committed
dashboard/app: fix total coverage visualization
1 parent 996b127 commit 1b70f4d

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

dashboard/app/graphs.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -333,9 +333,11 @@ func handleCoverageGraph(c context.Context, w http.ResponseWriter, r *http.Reque
333333
if _, ok := hist.covered[date]; !ok || hist.instrumented[date] == 0 {
334334
cols = append(cols, uiGraphColumn{Hint: date, Vals: []uiGraphValue{{IsNull: true}}})
335335
} else {
336+
val := float32(hist.covered[date]) / float32(hist.instrumented[date])
336337
cols = append(cols, uiGraphColumn{
337-
Vals: []uiGraphValue{{Val: float32(hist.covered[date]) / float32(hist.instrumented[date])}},
338-
Hint: date,
338+
Hint: date,
339+
Annotation: val,
340+
Vals: []uiGraphValue{{Val: val}},
339341
})
340342
}
341343
}

0 commit comments

Comments
 (0)