Changeset View
Changeset View
Standalone View
Standalone View
src/seeder/db.cpp
Show First 20 Lines • Show All 63 Lines • ▼ Show 20 Lines | do { | ||||
} | } | ||||
if (idToInfo[ret].ignoreTill && idToInfo[ret].ignoreTill < now) { | if (idToInfo[ret].ignoreTill && idToInfo[ret].ignoreTill < now) { | ||||
ourId.push_back(ret); | ourId.push_back(ret); | ||||
idToInfo[ret].ourLastTry = now; | idToInfo[ret].ourLastTry = now; | ||||
} else { | } else { | ||||
ip.service = idToInfo[ret].ip; | ip.service = idToInfo[ret].ip; | ||||
ip.ourLastSuccess = idToInfo[ret].ourLastSuccess; | ip.ourLastSuccess = idToInfo[ret].ourLastSuccess; | ||||
ip.fReliable = | |||||
idToInfo[ret].IsGood() && idToInfo[ret].hasBeenTriedBefore() && | |||||
idToInfo[ret].timeSinceFoundOrLastSuccess() > 2 * 86400; | |||||
break; | break; | ||||
} | } | ||||
} while (1); | } while (1); | ||||
nDirty++; | nDirty++; | ||||
return true; | return true; | ||||
} | } | ||||
▲ Show 20 Lines • Show All 157 Lines • Show Last 20 Lines |