1
0

fix: show actual refetch date

This commit is contained in:
dump_stack() 2023-05-15 15:29:23 +00:00
parent b0c795153a
commit 3e64c99b1c
Signed by: dump_stack
GPG Key ID: BE44DA8C062D87DC

View File

@ -284,7 +284,7 @@ func GetKernels() (kernels []DebianKernel, err error) {
if dk.Internal.Invalid { if dk.Internal.Invalid {
refetch := dk.Internal.LastFetch.AddDate(0, 0, RefetchDays) refetch := dk.Internal.LastFetch.AddDate(0, 0, RefetchDays)
if refetch.After(time.Now()) { if refetch.After(time.Now()) {
slog.Debug().Msgf("refetch at %v", RefetchDays) slog.Debug().Msgf("refetch at %v", refetch)
continue continue
} }
} }