Skip to content

Commit 0591341

Browse files
committed
costs
1 parent 1f09947 commit 0591341

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎analytics/service.go‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -194,8 +194,8 @@ func GetALLDatabaseUsageStats(ctx context.Context, db *pgxpool.Pool, projectOid
194194
if err := rows.Scan(&record.Timestamp, &record.ReadWriteCost, &record.CPUCost, &record.TotalCost); err != nil {
195195
return nil, *api.NewApiError("Internal server error", 500, errors.New("failed to scan database usage record: "+err.Error()))
196196
}
197-
record.CPUCost *= 10000000
198-
record.ReadWriteCost *= 10000000
197+
record.CPUCost *= 1000000000
198+
record.ReadWriteCost *= 1000000000
199199
if record.CPUCost < 0 {
200200
record.CPUCost *= -1
201201
}

0 commit comments

Comments
 (0)