This commit is contained in:
Jerry Yan 2019-04-27 22:11:51 +08:00
parent 2099321f0b
commit ed3ab5dc4f

View File

@ -46,7 +46,7 @@ def getTimeDelta(a, b):
def _doClean(): def _doClean():
global _do_move_time global _do_move_time
_disk = psutil.disk_usage(".") _disk = psutil.disk_usage(".")
if _disk.percent > config["max"] and getTimeDelta(datetime.now(), _do_move_time) > 3600: if _disk.percent > config["max"] and getTimeDelta(datetime.now(), _do_move_time) > 7200:
_do_move_time = datetime.now() _do_move_time = datetime.now()
os.system(config["dow"]) os.system(config["dow"])