From c25b57b2c173308c1d6dd37f70d3058e143caf47 Mon Sep 17 00:00:00 2001 From: Lee Salzman Date: Thu, 16 Apr 2020 00:15:18 -0400 Subject: stabilize packet throttle when RTT variance is low --- include/enet/utility.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include') diff --git a/include/enet/utility.h b/include/enet/utility.h index e48a476..b04bb7a 100644 --- a/include/enet/utility.h +++ b/include/enet/utility.h @@ -7,6 +7,7 @@ #define ENET_MAX(x, y) ((x) > (y) ? (x) : (y)) #define ENET_MIN(x, y) ((x) < (y) ? (x) : (y)) +#define ENET_DIFFERENCE(x, y) ((x) < (y) ? (y) - (x) : (x) - (y)) #endif /* __ENET_UTILITY_H__ */ -- cgit v1.2.3