From 5c1a8bf2951c0ae609074685daa1144561293537 Mon Sep 17 00:00:00 2001 From: solskgaer Date: Mon, 28 Jun 2021 19:16:51 +0800 Subject: [PATCH] rectify timestamp --- pkg/libimobiledevice/pcapd.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/libimobiledevice/pcapd.go b/pkg/libimobiledevice/pcapd.go index 218b173..aba2896 100644 --- a/pkg/libimobiledevice/pcapd.go +++ b/pkg/libimobiledevice/pcapd.go @@ -100,7 +100,7 @@ func (c *PcapdClient) CreatePacket(packet []byte) ([]byte, error) { now := time.Now() phs := &PcaprecHdrS{ int(now.Unix()), - int(now.UnixNano() / 1e6), + int(now.UnixNano()/1e3 - now.Unix()*1e6), len(packet), len(packet), }