aboutsummaryrefslogtreecommitdiff
path: root/src/network
diff options
context:
space:
mode:
authorsfan5 <sfan5@live.de>2020-05-01 21:44:28 +0200
committerGitHub <noreply@github.com>2020-05-01 21:44:28 +0200
commitac368af4fe27f61f5a4209cdfe90956ff745993c (patch)
treee50b778224099e38963db06d28c72ddf4677e528 /src/network
parent74d9b6010fd42573d20cdbe78f7aaa07badfbf1b (diff)
downloadminetest-ac368af4fe27f61f5a4209cdfe90956ff745993c.tar.gz
minetest-ac368af4fe27f61f5a4209cdfe90956ff745993c.tar.bz2
minetest-ac368af4fe27f61f5a4209cdfe90956ff745993c.zip
Allow connection info to be missing from minetest.get_player_information() (#9739)
fixes #9352 This reverts commit 23c907befea02005e2c0c87fca0131b60aace18a.
Diffstat (limited to 'src/network')
-rw-r--r--src/network/connection.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/network/connection.h b/src/network/connection.h
index 85f021c4c..47b0805ce 100644
--- a/src/network/connection.h
+++ b/src/network/connection.h
@@ -612,16 +612,16 @@ class Peer {
struct rttstats {
float jitter_min = FLT_MAX;
float jitter_max = 0.0f;
- float jitter_avg = -2.0f;
+ float jitter_avg = -1.0f;
float min_rtt = FLT_MAX;
float max_rtt = 0.0f;
- float avg_rtt = -2.0f;
+ float avg_rtt = -1.0f;
rttstats() = default;
};
rttstats m_rtt;
- float m_last_rtt = -2.0f;
+ float m_last_rtt = -1.0f;
// current usage count
unsigned int m_usage = 0;