Change default get downloads value to every 1440 mins (was 60)
This commit is contained in:
@@ -131,7 +131,7 @@ func (z *ZurgConfig) GetRepairEveryMins() int {
|
|||||||
|
|
||||||
func (z *ZurgConfig) GetDownloadsEveryMins() int {
|
func (z *ZurgConfig) GetDownloadsEveryMins() int {
|
||||||
if z.DownloadsEveryMins == 0 {
|
if z.DownloadsEveryMins == 0 {
|
||||||
return 60
|
return 1440
|
||||||
}
|
}
|
||||||
return z.DownloadsEveryMins
|
return z.DownloadsEveryMins
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -79,7 +79,7 @@ func (t *TorrentManager) invokeRepair(torrent *Torrent) {
|
|||||||
func (t *TorrentManager) TriggerRepair(torrent *Torrent) {
|
func (t *TorrentManager) TriggerRepair(torrent *Torrent) {
|
||||||
if torrent != nil {
|
if torrent != nil {
|
||||||
if err := torrent.State.Event(context.Background(), "break_torrent"); err != nil {
|
if err := torrent.State.Event(context.Background(), "break_torrent"); err != nil {
|
||||||
t.repairLog.Errorf("Failed to mark torrent %s as broken: %v", t.GetKey(torrent), err)
|
// t.repairLog.Errorf("Failed to mark torrent %s as broken: %v", t.GetKey(torrent), err)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
if !t.Config.EnableRepair() {
|
if !t.Config.EnableRepair() {
|
||||||
@@ -155,7 +155,7 @@ func (t *TorrentManager) Repair(torrent *Torrent, wg *sync.WaitGroup) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if err := torrent.State.Event(context.Background(), "repair_torrent"); err != nil && t.inProgressHashes.Contains(torrent.Hash) {
|
if err := torrent.State.Event(context.Background(), "repair_torrent"); err != nil && t.inProgressHashes.Contains(torrent.Hash) {
|
||||||
t.repairLog.Errorf("Failed to mark torrent %s as under repair: %v", t.GetKey(torrent), err)
|
// t.repairLog.Errorf("Failed to mark torrent %s as under repair: %v", t.GetKey(torrent), err)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
t.repair(torrent)
|
t.repair(torrent)
|
||||||
|
|||||||
Reference in New Issue
Block a user