We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6b5334e commit 9f5dddfCopy full SHA for 9f5dddf
coderd/metricscache/metricscache.go
@@ -158,8 +158,8 @@ func (c *Cache) refreshDeploymentStats(ctx context.Context) error {
158
}
159
c.deploymentStatsResponse.Store(&codersdk.DeploymentStats{
160
AggregatedFrom: from,
161
- CollectedAt: c.clock.Now(),
162
- NextUpdateAt: c.clock.Now().Add(c.intervals.DeploymentStats),
+ CollectedAt: dbtime.Time(c.clock.Now()),
+ NextUpdateAt: dbtime.Time(c.clock.Now().Add(c.intervals.DeploymentStats)),
163
Workspaces: codersdk.WorkspaceDeploymentStats{
164
Pending: workspaceStats.PendingWorkspaces,
165
Building: workspaceStats.BuildingWorkspaces,
0 commit comments