Commit 108f06d
committed
sqlite: Read time after uptime
We should read time after we have read uptime. The reason is that if we
for example read time at sec.999, then second will have wrapped when we
read uptime. While we might risk that the same happens with the new
order of operation, it is easier to work with a larger timestamp than a
large uptime. For example, with a larger timestamp, we risk having one
second as offset to the original boot time. With a small timestamp, we
risk having -1 second as offset and that is slightly harder to deal
with.
The boot time is meant as an estimation anyway, so 100% accurate value
is not needed.1 parent 0bda3f1 commit 108f06d
1 file changed
+3
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
300 | 300 | | |
301 | 301 | | |
302 | 302 | | |
303 | | - | |
304 | 303 | | |
305 | 304 | | |
306 | 305 | | |
307 | 306 | | |
308 | 307 | | |
309 | 308 | | |
| 309 | + | |
| 310 | + | |
310 | 311 | | |
| 312 | + | |
311 | 313 | | |
312 | 314 | | |
313 | 315 | | |
| |||
0 commit comments