time fix
This commit is contained in:
parent
2099321f0b
commit
ed3ab5dc4f
@ -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"])
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user