From 257924856c44b8bc6ec2cbcbdfd34bde6bb96190 Mon Sep 17 00:00:00 2001 From: Ziming Zhang Date: Fri, 24 Apr 2020 18:16:29 +0800 Subject: [PATCH] fix(retention) fix empty pull time log Signed-off-by: Ziming Zhang --- src/pkg/retention/job.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pkg/retention/job.go b/src/pkg/retention/job.go index b7f3fa1d3..ce85fc80a 100644 --- a/src/pkg/retention/job.go +++ b/src/pkg/retention/job.go @@ -213,7 +213,7 @@ func arn(art *selector.Candidate) string { } func t(tm int64) string { - if tm == 0 { + if tm <= 0 { return "" } return time.Unix(tm, 0).Format("2006/01/02 15:04:05")