Skip to content

Commit

Permalink
Add missing multiplier to convert to nanoseconds (chirpstack#234)
Browse files Browse the repository at this point in the history
  • Loading branch information
beitler authored Apr 16, 2024
1 parent 6897fe5 commit dfbaf37
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/backend/basicstation/structs/radio_meta_data.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ func SetRadioMetaDataToProto(loraBand band.Band, gatewayID lorawan.EUI64, rmd Ra
if rxTime := rmd.UpInfo.RxTime; rxTime != 0 {
sec, nsec := math.Modf(rmd.UpInfo.RxTime)
if sec != 0 {
val := time.Unix(int64(sec), int64(nsec))
val := time.Unix(int64(sec), int64(nsec*1e9))
pb.RxInfo.GwTime = timestamppb.New(val)
}
}
Expand Down

0 comments on commit dfbaf37

Please sign in to comment.