Changeset View
Changeset View
Standalone View
Standalone View
src/seeder/db.cpp
#include "db.h" | #include <seeder/db.h> | ||||
#include <cstdlib> | #include <cstdlib> | ||||
void CAddrInfo::Update(bool good) { | void CAddrInfo::Update(bool good) { | ||||
int64_t now = time(nullptr); | int64_t now = time(nullptr); | ||||
if (ourLastTry == 0) ourLastTry = now - MIN_RETRY; | if (ourLastTry == 0) ourLastTry = now - MIN_RETRY; | ||||
int age = now - ourLastTry; | int age = now - ourLastTry; | ||||
lastTry = now; | lastTry = now; | ||||
▲ Show 20 Lines • Show All 220 Lines • Show Last 20 Lines |