From 890bc3188d16ee14646c1152d3a53d428b432dbd Mon Sep 17 00:00:00 2001 From: Liang Ding Date: Mon, 10 Oct 2022 10:00:24 +0800 Subject: [PATCH] =?UTF-8?q?:art:=20=E9=80=80=E5=87=BA=E6=97=B6=E8=87=AA?= =?UTF-8?q?=E5=8A=A8=E5=88=A0=E9=99=A4=E8=B6=85=E8=BF=87=207=20=E5=A4=A9?= =?UTF-8?q?=E7=9A=84=E5=AE=89=E8=A3=85=E5=8C=85=20Fix=20https://github.com?= =?UTF-8?q?/siyuan-note/siyuan/issues/6128?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- kernel/model/conf.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kernel/model/conf.go b/kernel/model/conf.go index 92e2131f0..cf6235d4d 100644 --- a/kernel/model/conf.go +++ b/kernel/model/conf.go @@ -614,10 +614,10 @@ func clearWorkspaceTemp() { os.RemoveAll(filepath.Join(util.TempDir, "repo")) os.RemoveAll(filepath.Join(util.TempDir, "os")) - // 退出时自动删除超过 30 天的安装包 https://github.com/siyuan-note/siyuan/issues/5957 + // 退出时自动删除超过 7 天的安装包 https://github.com/siyuan-note/siyuan/issues/6128 install := filepath.Join(util.TempDir, "install") if gulu.File.IsDir(install) { - monthAgo := time.Now().Add(-time.Hour * 24 * 30) + monthAgo := time.Now().Add(-time.Hour * 24 * 7) entries, err := os.ReadDir(install) if nil != err { logging.LogErrorf("read dir [%s] failed: %s", install, err)