fix(retention) fix empty pull time log

Signed-off-by: Ziming Zhang <zziming@vmware.com>
This commit is contained in:
Ziming Zhang 2020-04-24 18:16:29 +08:00 committed by Ziming
parent f2d5f4e256
commit 257924856c

View File

@ -213,7 +213,7 @@ func arn(art *selector.Candidate) string {
} }
func t(tm int64) string { func t(tm int64) string {
if tm == 0 { if tm <= 0 {
return "" return ""
} }
return time.Unix(tm, 0).Format("2006/01/02 15:04:05") return time.Unix(tm, 0).Format("2006/01/02 15:04:05")