Skip to content

Commit

Permalink
Merge pull request #10 from SolskGaer/rectify-timestamp
Browse files Browse the repository at this point in the history
rectify timestamp
  • Loading branch information
electricbubble authored Jun 28, 2021
2 parents f5c29fd + 5c1a8bf commit ffd7e6b
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 ffd7e6b

Please sign in to comment.