Save all 64 bits of get_ticks_msec() in more cases

(cherry picked from commit 5dc02eb8b0)
This commit is contained in:
Max Hilbrunner 2021-10-26 08:44:50 +02:00 committed by Rémi Verschelde
parent fa3fc6ff0d
commit e29126914d
No known key found for this signature in database
GPG key ID: C3336907360768E1
10 changed files with 16 additions and 16 deletions

View file

@ -887,8 +887,8 @@ int MultiplayerAPI::get_outgoing_bandwidth_usage() {
int MultiplayerAPI::_get_bandwidth_usage(const Vector<BandwidthFrame> &p_buffer, int p_pointer) {
int total_bandwidth = 0;
uint32_t timestamp = OS::get_singleton()->get_ticks_msec();
uint32_t final_timestamp = timestamp - 1000;
uint64_t timestamp = OS::get_singleton()->get_ticks_msec();
uint64_t final_timestamp = timestamp - 1000;
int i = (p_pointer + p_buffer.size() - 1) % p_buffer.size();