Skip to content

Commit 8b1c46f

Browse files
authored
fix: analyze build times over 30 days not 30 months (#14584)
1 parent 0f342ed commit 8b1c46f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

coderd/metricscache/metricscache.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ func (c *Cache) refreshTemplateBuildTimes(ctx context.Context) error {
9999
Valid: true,
100100
},
101101
StartTime: sql.NullTime{
102-
Time: dbtime.Time(time.Now().AddDate(0, -30, 0)),
102+
Time: dbtime.Time(time.Now().AddDate(0, 0, -30)),
103103
Valid: true,
104104
},
105105
})

0 commit comments

Comments
 (0)