aboutsummaryrefslogtreecommitdiff
path: root/libpod
diff options
context:
space:
mode:
authorAshley Cui <acui@redhat.com>2021-02-15 15:37:45 -0500
committerAshley Cui <acui@redhat.com>2021-02-19 02:21:12 -0500
commitf2d057c943957dce99b49d291c2e1b96af31a9e5 (patch)
treebb8b5d4c555fa7c411c217dcad686e3002b9333f /libpod
parentfbc50e5285e960e6533e64a768dd4fb5615c8f7e (diff)
downloadpodman-f2d057c943957dce99b49d291c2e1b96af31a9e5.tar.gz
podman-f2d057c943957dce99b49d291c2e1b96af31a9e5.tar.bz2
podman-f2d057c943957dce99b49d291c2e1b96af31a9e5.zip
Fix journald logs --since
Signed-off-by: Ashley Cui <acui@redhat.com>
Diffstat (limited to 'libpod')
-rw-r--r--libpod/container_log_linux.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/libpod/container_log_linux.go b/libpod/container_log_linux.go
index c9620100e..af46191d0 100644
--- a/libpod/container_log_linux.go
+++ b/libpod/container_log_linux.go
@@ -47,7 +47,7 @@ func (c *Container) readFromJournal(ctx context.Context, options *logs.LogOption
if time.Now().Before(options.Since) {
return nil
}
- config.Since = time.Since(options.Since)
+ config.Since = -time.Since(options.Since)
}
config.Matches = append(config.Matches, journal.Match{
Field: "CONTAINER_ID_FULL",