Commit ef15084
refactor: skip time update on implausible delta instead of capping
Per reviewer feedback, instead of capping the delta to 1 hour (which still
causes a potentially large time jump), skip the update entirely when the
delta exceeds a plausible threshold. The clock will resync naturally on
the next setTime() call from the CSMS.
This ensures Clock::now() never produces time jumps, maintaining
consistency for transaction timestamps and other time-sensitive operations.1 parent ceb14cc commit ef15084
1 file changed
Lines changed: 8 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
361 | 361 | | |
362 | 362 | | |
363 | 363 | | |
364 | | - | |
365 | | - | |
366 | | - | |
367 | | - | |
368 | | - | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
369 | 372 | | |
370 | 373 | | |
371 | 374 | | |
| |||
0 commit comments