Fix when program at another disk

This commit is contained in:
Jerry Yan 2019-04-27 22:08:16 +08:00 committed by JerryYan
parent 1644f52eb0
commit 4ea19b4ff4

View File

@ -45,7 +45,7 @@ def getTimeDelta(a, b):
def doClean():
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:
_do_move_time = datetime.now()
os.system(config["dow"])