Skip to content

Commit

Permalink
Update comments.
Browse files Browse the repository at this point in the history
  • Loading branch information
ishan16696 committed Jan 13, 2023
1 parent ce638ea commit 132191c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/snapshot/snapshotter/snapshotter.go
Original file line number Diff line number Diff line change
Expand Up @@ -745,7 +745,7 @@ func (ssr *Snapshotter) checkSnapstoreSecretUpdate() bool {
return true
}

// IsScheduledFullSnapshotMissed checked whether the last scheduled full-snapshot was missed or not.
// IsScheduledFullSnapshotMissed checked whether the last scheduled full-snapshot is missed or scheduled full-snapshot can be missed.
func (ssr *Snapshotter) IsScheduledFullSnapshotMissed() bool {
if time.Since(ssr.PrevFullSnapshot.CreatedOn).Hours() > recentFullSnapshotPeriodInHours {
return true
Expand All @@ -759,5 +759,6 @@ func (ssr *Snapshotter) IsScheduledFullSnapshotMissed() bool {
return false
}

// to check whether schedule full-snapshot can be missed.
return timeLeftToTakeNextSnap.Hours()+time.Since(ssr.PrevFullSnapshot.CreatedOn).Hours() > recentFullSnapshotPeriodInHours
}

0 comments on commit 132191c

Please sign in to comment.