diff --git a/backend/app/service/setting_clean.go b/backend/app/service/setting_clean.go index be557615d..06b3884bf 100644 --- a/backend/app/service/setting_clean.go +++ b/backend/app/service/setting_clean.go @@ -327,8 +327,8 @@ func (u *SettingService) SystemCleanForCronjob() (string, error) { } } timeNow := time.Now().Format("2006-01-02 15:04:05") - logs += fmt.Sprintf("%s: total clean: %s, total count: %d", timeNow, common.LoadSizeUnit2F(float64(size)), fileCount) dropFileOrDirWithLog(path.Join(global.CONF.System.BaseDir, dockerLogPath), &logs, &size, &fileCount) + logs += fmt.Sprintf("\n%s: total clean: %s, total count: %d", timeNow, common.LoadSizeUnit2F(float64(size)), fileCount) _ = settingRepo.Update("LastCleanTime", timeNow) _ = settingRepo.Update("LastCleanSize", fmt.Sprintf("%v", size)) diff --git a/frontend/src/components/backup/index.vue b/frontend/src/components/backup/index.vue index b510f1885..1d563b1da 100644 --- a/frontend/src/components/backup/index.vue +++ b/frontend/src/components/backup/index.vue @@ -44,13 +44,15 @@ + +