diff options
author | ANAND <ClobberXD@gmail.com> | 2019-02-16 05:09:22 +0530 |
---|---|---|
committer | Paramat <paramat@users.noreply.github.com> | 2019-02-15 23:39:22 +0000 |
commit | 7a0e52acd65e7097977c924f26b387ec3da9baac (patch) | |
tree | 4d61197820480c17b4d032c07b64e23d93334c88 /src/network/connection.h | |
parent | 2153163cbd0a57783e646523c62e83bfe1be2277 (diff) | |
download | minetest-7a0e52acd65e7097977c924f26b387ec3da9baac.tar.gz minetest-7a0e52acd65e7097977c924f26b387ec3da9baac.tar.bz2 minetest-7a0e52acd65e7097977c924f26b387ec3da9baac.zip |
Revert RTT fixes (#8187)
The reverted commit 968ce9af598024ec71e9ffb2d15c3997a13ad754
is suspected (through the use of bisection) of causing network slowdowns.
Revert for now as we are close to release.
Diffstat (limited to 'src/network/connection.h')
-rw-r--r-- | src/network/connection.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/network/connection.h b/src/network/connection.h index f9cd3e6ca..346c7f886 100644 --- a/src/network/connection.h +++ b/src/network/connection.h @@ -581,15 +581,15 @@ class Peer { return m_rtt.jitter_max; case AVG_JITTER: return m_rtt.jitter_avg; - case TIMEOUT_COUNTER: - return m_timeout_counter; } return -1; } protected: virtual void reportRTT(float rtt) {}; - void RTTStatistics(float rtt, const std::string &profiler_id = ""); + void RTTStatistics(float rtt, + const std::string &profiler_id = "", + unsigned int num_samples = 1000); bool IncUseCount(); void DecUseCount(); |