fill LastSuccessfulAttemptStartTime if possible
This commit is contained in:
parent
900ac27d63
commit
586520aa55
|
@ -316,6 +316,11 @@ func LoadConfig(configPath string, doneChan chan SyncResult, stopChan chan struc
|
|||
err = ini.MapTo(&repo.State, repo.StateFile)
|
||||
panicIfErr(err)
|
||||
|
||||
// fill LastSuccessfulAttemptStartTime if we have the data
|
||||
if repo.State.LastSuccessfulAttemptStartTime == 0 && repo.State.LastAttemptExit == SUCCESS {
|
||||
repo.State.LastSuccessfulAttemptStartTime = repo.State.LastAttemptStartTime
|
||||
}
|
||||
|
||||
newRepos = append(newRepos, &repo)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue