Skip to content

Commit

Permalink
rectify timestamp
Browse files Browse the repository at this point in the history
  • Loading branch information
SolskGaer committed Jun 28, 2021
1 parent f5c29fd commit 5c1a8bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/libimobiledevice/pcapd.go
Original file line number Diff line number Diff line change
Expand Up @@ -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),
}
Expand Down

0 comments on commit 5c1a8bf

Please sign in to comment.