summaryrefslogtreecommitdiff
path: root/pkg/domain/entities
diff options
context:
space:
mode:
authorLeah Neukirchen <leah@vuxu.org>2021-12-17 14:56:32 +0100
committerLeah Neukirchen <leah@vuxu.org>2022-01-12 13:25:17 +0100
commit5aedcb36435048dc06a18476aed2cfda1bf41031 (patch)
tree4f887ff05ca099501f4fc460b48b6de509f8cb80 /pkg/domain/entities
parent8365d49a05eccbaad4a796470c2cf62083249997 (diff)
downloadpodman-5aedcb36435048dc06a18476aed2cfda1bf41031.tar.gz
podman-5aedcb36435048dc06a18476aed2cfda1bf41031.tar.bz2
podman-5aedcb36435048dc06a18476aed2cfda1bf41031.zip
remote events: convert TimeNano properly
e.TimeNano contains nanoseconds since epoch, not just the nanoseconds after e.Time. time.Unix supports nanoseconds > 999999999 and converts them to seconds, so just passing e.TimeNano is enough. Signed-off-by: Leah Neukirchen <leah@vuxu.org>
Diffstat (limited to 'pkg/domain/entities')
-rw-r--r--pkg/domain/entities/events.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/domain/entities/events.go b/pkg/domain/entities/events.go
index 73a375b94..fa815d7b9 100644
--- a/pkg/domain/entities/events.go
+++ b/pkg/domain/entities/events.go
@@ -42,7 +42,7 @@ func ConvertToLibpodEvent(e Event) *libpodEvents.Event {
Image: image,
Name: name,
Status: status,
- Time: time.Unix(e.Time, e.TimeNano),
+ Time: time.Unix(0, e.TimeNano),
Type: t,
Details: libpodEvents.Details{
Attributes: details,