mirror of
https://git.rtems.org/rtems-libbsd/
synced 2025-07-24 02:22:03 +08:00
BPF(9): Fix timestamps
This commit is contained in:
parent
481397ff24
commit
616e1d4cf7
@ -2460,6 +2460,7 @@ bpf_bintime2ts(struct bintime *bt, struct bpf_ts *ts, int tstype)
|
|||||||
|
|
||||||
if ((tstype & BPF_T_MONOTONIC) == 0) {
|
if ((tstype & BPF_T_MONOTONIC) == 0) {
|
||||||
bt2 = *bt;
|
bt2 = *bt;
|
||||||
|
getboottimebin(&boottimebin);
|
||||||
bintime_add(&bt2, &boottimebin);
|
bintime_add(&bt2, &boottimebin);
|
||||||
bt = &bt2;
|
bt = &bt2;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user