diff options
author | Karsten Loesing <karsten.loesing@gmx.net> | 2010-08-02 15:06:14 +0200 |
---|---|---|
committer | Karsten Loesing <karsten.loesing@gmx.net> | 2010-12-03 16:47:51 +0100 |
commit | 5dfdf075ac0cb3df66443011d3faa2c95dc53629 (patch) | |
tree | 7bd0ca2f3b876499a6310740ef838bf74afaeced /src/or/connection.c | |
parent | 520182579a4c186e94a1ada1d66c09c89ee3f3c4 (diff) | |
download | tor-5dfdf075ac0cb3df66443011d3faa2c95dc53629.tar.gz tor-5dfdf075ac0cb3df66443011d3faa2c95dc53629.zip |
Add metric on uni/bidirectional connection usage.
Diffstat (limited to 'src/or/connection.c')
-rw-r--r-- | src/or/connection.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/or/connection.c b/src/or/connection.c index 14883157a9..6f9ae20a78 100644 --- a/src/or/connection.c +++ b/src/or/connection.c @@ -2185,6 +2185,11 @@ connection_buckets_decrement(connection_t *conn, time_t now, if (!connection_is_rate_limited(conn)) return; /* local IPs are free */ + + if (conn->type == CONN_TYPE_OR) + rep_hist_note_or_conn_bytes(conn->global_identifier, num_read, + num_written, now); + if (num_read > 0) { rep_hist_note_bytes_read(num_read, now); } |