Skip to content

Commit dfbaf37

Browse files
authored
Add missing multiplier to convert to nanoseconds (#234)
1 parent 6897fe5 commit dfbaf37

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/backend/basicstation/structs/radio_meta_data.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ func SetRadioMetaDataToProto(loraBand band.Band, gatewayID lorawan.EUI64, rmd Ra
8080
if rxTime := rmd.UpInfo.RxTime; rxTime != 0 {
8181
sec, nsec := math.Modf(rmd.UpInfo.RxTime)
8282
if sec != 0 {
83-
val := time.Unix(int64(sec), int64(nsec))
83+
val := time.Unix(int64(sec), int64(nsec*1e9))
8484
pb.RxInfo.GwTime = timestamppb.New(val)
8585
}
8686
}

0 commit comments

Comments
 (0)