hs: progess on the log file generator, fully written but untested

ft: timeout changes and wording fixes
This commit is contained in:
Green Sky
2024-12-05 23:06:44 +01:00
parent 04b6f7925a
commit b9a7c75d20
8 changed files with 168 additions and 10 deletions

View File

@@ -7,8 +7,8 @@ void ReceivingTransfers::tick(float delta) {
for (auto it = peer_it->second.begin(); it != peer_it->second.end();) {
it->second.time_since_activity += delta;
// if we have not heard for 20sec, timeout
if (it->second.time_since_activity >= 20.f) {
// if we have not heard for 60sec, timeout
if (it->second.time_since_activity >= 60.f) {
std::cerr << "SHA1_NGCFT1 warning: receiving tansfer timed out " << "." << int(it->first) << "\n";
// TODO: if info, requeue? or just keep the timer comp? - no, timer comp will continue ticking, even if loading
//it->second.v