Skip to content

Commit

Permalink
Add missing multiplier to convert to nanoseconds
Browse files Browse the repository at this point in the history
  • Loading branch information
beitler committed Apr 12, 2024
1 parent 6897fe5 commit 92b873c
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 92b873c

Please sign in to comment.