From dfbaf37b022d7eeabde870fe2b8d8a465aca00b9 Mon Sep 17 00:00:00 2001 From: anton Date: Tue, 16 Apr 2024 09:48:08 +0200 Subject: [PATCH] Add missing multiplier to convert to nanoseconds (#234) --- internal/backend/basicstation/structs/radio_meta_data.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/backend/basicstation/structs/radio_meta_data.go b/internal/backend/basicstation/structs/radio_meta_data.go index 95c94edb..64725eb5 100644 --- a/internal/backend/basicstation/structs/radio_meta_data.go +++ b/internal/backend/basicstation/structs/radio_meta_data.go @@ -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) } }