Skip to content

Update comments to reflect the last-used timestamp granularity - #429

Merged
stepchowfun merged 1 commit into
mainfrom
update-timestamp-comments
Oct 25, 2026
Merged

stepchowfun merged 1 commit into
mainfrom
update-timestamp-comments

Conversation

@stepchowfun

Copy link
Copy Markdown
Owner

Since #428, last-used timestamps are only accurate to within LAST_USED_GRANULARITY, and touch_image skips updating recent ones. This PR updates the comments on state::Image::last_used_since_epoch and touch_image accordingly, linking both to the constant with a new [tag:last_used_granularity] so Tagref keeps them in sync.

It also rewords the comment before the "Waking up" log line, which said a vacuum was about to happen even though vacuums only happen when a new image comes in.

This PR only changes comments, so there's no version bump.

Status: Ready

Fixes: N/A

Since #428, last-used timestamps are only accurate to within
`LAST_USED_GRANULARITY`, and `touch_image` skips updating recent ones. Link
both comments to the constant with Tagref so they stay in sync. Also
reword the comment before the "Waking up" log line, which claimed a vacuum
was about to happen even though vacuums only happen for new images.
@stepchowfun
stepchowfun merged commit 636f209 into main Oct 25, 2026
6 checks passed
@stepchowfun
stepchowfun deleted the update-timestamp-comments branch October 25, 2026 04:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant