Commit 5a0083b
committed
fix(core): use a monotonic clock for the drain watchdog
Addresses review feedback: Date.now() is wall-clock time, so an NTP
adjustment or VM migration could fire the stall watchdog prematurely
(clock jumps forward) or delay it (clock jumps backward).
performance.now() is monotonic and immune to clock adjustments. The
wall-clock Date.now() uses for history timestamps are untouched.1 parent baa9995 commit 5a0083b
1 file changed
Lines changed: 8 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1061 | 1061 | | |
1062 | 1062 | | |
1063 | 1063 | | |
1064 | | - | |
1065 | | - | |
| 1064 | + | |
| 1065 | + | |
| 1066 | + | |
1066 | 1067 | | |
1067 | | - | |
| 1068 | + | |
1068 | 1069 | | |
1069 | 1070 | | |
1070 | 1071 | | |
| |||
1415 | 1416 | | |
1416 | 1417 | | |
1417 | 1418 | | |
1418 | | - | |
| 1419 | + | |
| 1420 | + | |
| 1421 | + | |
| 1422 | + | |
1419 | 1423 | | |
1420 | 1424 | | |
1421 | 1425 | | |
| |||
0 commit comments