From 16c42c9c356a88d3f34aa33480779eb32a60e5cf Mon Sep 17 00:00:00 2001 From: Cyrille Nofficial Date: Sat, 15 Feb 2020 18:00:50 +0100 Subject: [PATCH] Fix id format in FrameMessage --- camera/camera.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/camera/camera.go b/camera/camera.go index c64e876..afd5b78 100644 --- a/camera/camera.go +++ b/camera/camera.go @@ -94,7 +94,7 @@ func (o *OpencvCameraPart) publishFrame(tickerTime time.Time) { msg := &events.FrameMessage{ Id: &events.FrameRef{ Name: "camera", - Id: fmt.Sprintf("%d%000d", tickerTime.Unix(), tickerTime.Nanosecond()/1000/1000), + Id: fmt.Sprintf("%d%03d", tickerTime.Unix(), tickerTime.Nanosecond()/1000/1000), CreatedAt: ×tamp.Timestamp{ Seconds: tickerTime.Unix(), Nanos: int32(tickerTime.Nanosecond()),