diff options
author | Lee Salzman <[email protected]> | 2020-04-16 00:15:18 -0400 |
---|---|---|
committer | Lee Salzman <[email protected]> | 2020-04-16 00:15:18 -0400 |
commit | c25b57b2c173308c1d6dd37f70d3058e143caf47 (patch) | |
tree | dfb60f25cb9cb522096fdcbc6ad11768fae59006 /include | |
parent | f89e5986d06033f6b6421163444960f78dec99f8 (diff) | |
download | enet-c25b57b2c173308c1d6dd37f70d3058e143caf47.tar.gz enet-c25b57b2c173308c1d6dd37f70d3058e143caf47.zip |
stabilize packet throttle when RTT variance is low
Diffstat (limited to 'include')
-rw-r--r-- | include/enet/utility.h | 1 |
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__ */ |