Fix when program at another disk
This commit is contained in:
parent
1644f52eb0
commit
4ea19b4ff4
@ -45,7 +45,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) > 3600:
|
||||||
_do_move_time = datetime.now()
|
_do_move_time = datetime.now()
|
||||||
os.system(config["dow"])
|
os.system(config["dow"])
|
||||||
|
Reference in New Issue
Block a user