Re: [PATCH] Change attachment stamping to use stat st_mtime by default.
Oswald Buddenhagen via Mutt-dev <[email protected]>
| Newsgroups | gmane.mail.mutt.devel |
|---|---|
| Message-ID | <[email protected]> |
On Thu, Aug 20, 2026 at 01:26:57PM +0100, Ian Collier via Mutt-dev wrote: >The fact is that because time() has coarse granularity >it is only updated every few milliseconds, and if the real-time clock's >seconds counter ticks during that gap then the result from time() will >show the old value, not the current one, until the next update. > but that's an implementation detail, not something that inherently follows from coarse granularity. a reasonable default interpretation would be that the sub-seconds are missing, but the seconds are still accurate - which is exactly what everybody was assuming so far for time(). that makes the commit message an apparent non-sequitur without spelling out the background info. (a possible fix in the kernel would be queries of the precise clock also updating the coarse clock as a side effect.)