Skip to content

Commit

Permalink
Merge pull request cri-o#8582 from saschagrunert/timestamp-nano
Browse files Browse the repository at this point in the history
Use nanosecond timestamp for evented pleg pod status
  • Loading branch information
openshift-merge-bot[bot] authored Sep 10, 2024
2 parents ac758bb + 8b28721 commit f06ee49
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/sandbox_status.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ func (s *Server) PodSandboxStatus(ctx context.Context, req *types.PodSandboxStat
var containerStatuses []*types.ContainerStatus
var timestamp int64
if s.config.EnablePodEvents {
timestamp = time.Now().Unix()
timestamp = time.Now().UnixNano()
containerStatuses, err = s.getContainerStatusesFromSandboxID(ctx, req.PodSandboxId)
if err != nil {
return nil, status.Errorf(codes.Unknown, "could not get container statuses of the sandbox Id %q: %v", req.PodSandboxId, err)
Expand Down

0 comments on commit f06ee49

Please sign in to comment.