diff options
author | Andrea Shepard <andrea@torproject.org> | 2013-11-11 21:50:16 -0800 |
---|---|---|
committer | Andrea Shepard <andrea@torproject.org> | 2014-09-30 22:49:03 -0700 |
commit | 2fc3da3ff51f3fe7fa5338c2d6b52a06ed9c4f19 (patch) | |
tree | 1b6cb727d5d40dea2dcc233f22acad2840b04641 /src/or/channel.c | |
parent | 8852a1794cfa9eb5dae494f5d85242d8fd6955fc (diff) | |
download | tor-2fc3da3ff51f3fe7fa5338c2d6b52a06ed9c4f19.tar.gz tor-2fc3da3ff51f3fe7fa5338c2d6b52a06ed9c4f19.zip |
Implement global queue size query in channel.c
Diffstat (limited to 'src/or/channel.c')
-rw-r--r-- | src/or/channel.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/or/channel.c b/src/or/channel.c index f729a17be9..e2d102d2ac 100644 --- a/src/or/channel.c +++ b/src/or/channel.c @@ -4036,6 +4036,16 @@ channel_mark_outgoing(channel_t *chan) ***********************/ /* + * Get the latest estimate for the total queue size of all open channels + */ + +uint64_t +channel_get_global_queue_estimate(void) +{ + return estimated_total_queue_size; +} + +/* * Estimate the number of writeable cells * * Ask the lower layer for an estimate of how many cells it can accept, and |