aboutsummaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authorLee Salzman <[email protected]>2020-04-16 00:15:18 -0400
committerLee Salzman <[email protected]>2020-04-16 00:15:18 -0400
commitc25b57b2c173308c1d6dd37f70d3058e143caf47 (patch)
treedfb60f25cb9cb522096fdcbc6ad11768fae59006 /include
parentf89e5986d06033f6b6421163444960f78dec99f8 (diff)
downloadenet-c25b57b2c173308c1d6dd37f70d3058e143caf47.tar.gz
enet-c25b57b2c173308c1d6dd37f70d3058e143caf47.zip
stabilize packet throttle when RTT variance is low
Diffstat (limited to 'include')
-rw-r--r--include/enet/utility.h1
1 files changed, 1 insertions, 0 deletions
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__ */