From 29d23a38d2c98e82b1865efa1f8ec1e545e7207d Mon Sep 17 00:00:00 2001 From: Jerry Yan <792602257@qq.com> Date: Mon, 7 Feb 2022 10:28:38 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4exp=E5=8F=82=E6=95=B0?= =?UTF-8?q?=EF=BC=8C=E7=94=B1max=E6=8E=A7=E5=88=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Common.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Common.py b/Common.py index ed05238..461fe20 100644 --- a/Common.py +++ b/Common.py @@ -108,7 +108,7 @@ def getTimeDelta(a, b): def _doClean(_force=False): global doCleanTime, _clean_flag _disk = psutil.disk_usage(".") - if _disk.percent > config["max"] or getTimeDelta(datetime.now(), doCleanTime) > config["exp"] * 86400 or _force: + if _disk.percent > config["max"] or _force: _clean_flag = True doCleanTime = datetime.now() appendOperation("执行配置的清理命令")