mirror of
https://github.com/Oibaf66/frodo-wii.git
synced 2024-11-10 21:55:11 +01:00
Cap at 80kbps and 300kbps
This commit is contained in:
parent
a909b551b2
commit
ba7ee22494
@ -1190,8 +1190,11 @@ network_connection_error_t Network::WaitForBandWidthReply()
|
||||
this->target_kbps = bits_per_second;
|
||||
}
|
||||
|
||||
/* But force it to be within these limits */
|
||||
if (this->target_kbps > 300000)
|
||||
this->target_kbps = 300000;
|
||||
if (this->target_kbps < 80000)
|
||||
this->target_kbps = 80000;
|
||||
|
||||
return OK;
|
||||
}
|
||||
@ -1264,8 +1267,8 @@ network_connection_error_t Network::ConnectFSM()
|
||||
TheC64->TheDisplay->display_status_string((char*)"TESTING BANDWIDTH", 1);
|
||||
this->ResetNetworkUpdate();
|
||||
this->SendPingAck(this->is_master, BANDWIDTH_PING, 2048);
|
||||
this->bandwidth_ping_ms = SDL_GetTicks();
|
||||
this->SendUpdate();
|
||||
this->bandwidth_ping_ms = SDL_GetTicks();
|
||||
this->ResetNetworkUpdate();
|
||||
this->network_connection_state = CONN_BANDWIDTH_REPLY;
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user