Skip to content

Commit 1422c1d

Browse files
committed
Remove unused resource snapshot timestamp
1 parent c2682f2 commit 1422c1d

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

lib/resources/monitoring.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ type monitoringState struct {
1919
}
2020

2121
type monitoringSnapshot struct {
22-
capturedAt time.Time
2322
status FullResourceStatus
2423
imageStorageCurrent int64
2524
imageStorageMax int64
@@ -96,8 +95,7 @@ func (m *Manager) refreshMonitoringSnapshot(ctx context.Context) error {
9695
}
9796

9897
snapshot := monitoringSnapshot{
99-
capturedAt: time.Now(),
100-
status: *status,
98+
status: *status,
10199
}
102100
if status.DiskDetail != nil {
103101
snapshot.imageStorageCurrent = status.DiskDetail.Images + status.DiskDetail.OCICache

0 commit comments

Comments
 (0)