summaryrefslogtreecommitdiff
path: root/node/Peer.hpp
diff options
context:
space:
mode:
authorJoseph Henry <josephjah@gmail.com>2018-06-12 16:30:46 -0700
committerJoseph Henry <josephjah@gmail.com>2018-06-12 16:30:46 -0700
commit0faa655b834be45d379c84769604b5c43f734650 (patch)
tree18fa39de247e0989ddddfbe54d9a74d9e80548b2 /node/Peer.hpp
parent6fddf31db31a6f3d0f9c6dd7e611543f56d6fc2f (diff)
downloadinfinitytier-0faa655b834be45d379c84769604b5c43f734650.tar.gz
infinitytier-0faa655b834be45d379c84769604b5c43f734650.zip
Reduced how often relative path qualities and aggregate link allocations are computed
Diffstat (limited to 'node/Peer.hpp')
-rw-r--r--node/Peer.hpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/node/Peer.hpp b/node/Peer.hpp
index 8807662d..21e8cbf2 100644
--- a/node/Peer.hpp
+++ b/node/Peer.hpp
@@ -194,9 +194,11 @@ public:
void sendQOS_MEASUREMENT(void *tPtr, const SharedPtr<Path> &path, const int64_t localSocket,const InetAddress &atAddress,int64_t now);
/**
- * @return The relative quality values for each path
+ * Compute relative quality values and allocations for the components of the aggregate link
+ *
+ * @param now Current time
*/
- float computeAggregateLinkRelativeQuality(int64_t now);
+ void computeAggregateProportionalAllocation(int64_t now);
/**
* @return The aggregate link Packet Delay Variance (PDV)
@@ -677,6 +679,7 @@ private:
bool _remotePeerMultipathEnabled;
uint64_t _lastAggregateStatsReport;
+ uint64_t _lastAggregateAllocation;
char _interfaceListStr[256]; // 16 characters * 16 paths in a link
};