Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions dashboard/app/entities_spanner.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ func MergedCoverage(ctx context.Context, ns, periodType string) (*CoverageHistor
select
dateto as targetdate,
duration as days,
cast(sum(instrumented) as INTEGER) as instrumented,
cast(sum(covered) as INTEGER) as covered
cast(sum(array_length(linesinstrumented, 1)) as INTEGER) as instrumented,
cast(sum(array_length(hitcounts, 1)) as INTEGER) as covered
from merge_history join files
on merge_history.session = files.session
where namespace=$1 and duration>=$2 and duration<=$3
Expand Down
4 changes: 2 additions & 2 deletions pkg/cover/heatmap.go
Original file line number Diff line number Diff line change
Expand Up @@ -159,8 +159,8 @@ func filesCoverageWithDetailsStmt(ns, subsystem string, timePeriod coveragedb.Ti
SQL: `
select
commit,
instrumented,
covered,
array_length(linesinstrumented, 1) as instrumented,
array_length(hitcounts, 1) as covered,
files.filepath,
subsystems
from merge_history
Expand Down
Loading