Skip to content

Commit 0efc7fc

Browse files
committed
[#1375] Fix unit test
1 parent a3c6350 commit 0efc7fc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

backend/server/database/model/metrics.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,8 @@ func GetCalculatedMetrics(db *pg.DB) (*CalculatedMetrics, error) {
5555
Table("shared_network").
5656
ColumnExpr("\"name\" AS \"label\"").
5757
ColumnExpr("\"inet_family\" AS \"family\"").
58-
Column("addr_utilization", "pd_utilization", "stats").
58+
Column("addr_utilization", "pd_utilization").
59+
ColumnExpr("\"stats\" AS \"shared_network_stats\"").
5960
Select(&metrics.SharedNetworkMetrics)
6061
if err != nil {
6162
return nil, errors.Wrap(err, "cannot calculate shared network metrics")

0 commit comments

Comments
 (0)