Переглянути джерело

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)
 	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;
 			_lastEchoRequestReceived = now;
 			return true;
 			return true;
 		}
 		}