Преглед изворни кода

Change ECHO divisor from 20 to 6

Joseph Henry пре 3 година
родитељ
комит
1918c29fd7
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      node/Path.hpp

+ 1 - 1
node/Path.hpp

@@ -273,7 +273,7 @@ public:
 	 */
 	inline bool rateGateEchoRequest(const int64_t now)
 	{
-		if ((now - _lastEchoRequestReceived) >= (ZT_PEER_GENERAL_RATE_LIMIT / 20)) {
+		if ((now - _lastEchoRequestReceived) >= (ZT_PEER_GENERAL_RATE_LIMIT / 6)) {
 			_lastEchoRequestReceived = now;
 			return true;
 		}