mirror of
https://github.com/iperov/DeepFaceLab.git
synced 2025-07-06 04:52:13 -07:00
autobackup hour
This commit is contained in:
parent
5620763ccf
commit
4850ef4965
1 changed files with 2 additions and 1 deletions
|
@ -360,7 +360,8 @@ class ModelBase(object):
|
|||
|
||||
if self.autobackup_hour != 0:
|
||||
current_hour = int(time.time() // 3600)
|
||||
diff_hour = self.autobackup_start_hour - current_hour
|
||||
diff_hour = current_hour - self.autobackup_start_hour
|
||||
|
||||
if diff_hour > 0 and diff_hour % self.autobackup_hour == 0:
|
||||
self.autobackup_start_hour = current_hour
|
||||
self.create_backup()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue