Commit 9e9e80a
authored
fix: revert GetBootTimeNs() to fix timestamp drift (#277)
Revert from commit bcd9064 when `GetBootTimeNs()` was in `internal/consumer/net.go` as `getBootTimeNs()`.
Timestamp drift appeared after the first capture: every real second elapsed would be like 2 seconds in the timestamp.
For example, with a `ping` command sending ICMP packets every second, the packets would have timestamps that were 2 seconds apart1 parent af82075 commit 9e9e80a
1 file changed
+6
-17
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
84 | 84 | | |
85 | 85 | | |
86 | 86 | | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | 87 | | |
94 | | - | |
95 | | - | |
96 | | - | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | | - | |
102 | | - | |
103 | | - | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
104 | 93 | | |
105 | | - | |
| 94 | + | |
106 | 95 | | |
0 commit comments