summaryrefslogtreecommitdiff
path: root/src/or/entrynodes.h
diff options
context:
space:
mode:
authorMike Perry <mikeperry-git@fscked.org>2012-12-09 20:53:22 -0800
committerMike Perry <mikeperry-git@fscked.org>2012-12-09 20:53:22 -0800
commit2dbb62f1b571ea57af111f1f660a5149d160c4fb (patch)
tree3d19a487f0b88d2f789b60cf818bf75f07749364 /src/or/entrynodes.h
parentab1fce5c19b64b3f1ba15d6ffa1f0d11d6a959c3 (diff)
downloadtor-2dbb62f1b571ea57af111f1f660a5149d160c4fb.tar.gz
tor-2dbb62f1b571ea57af111f1f660a5149d160c4fb.zip
Convert to doubles for all pathbias state.
Let's hope this solves the rounding error issue..
Diffstat (limited to 'src/or/entrynodes.h')
-rw-r--r--src/or/entrynodes.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/or/entrynodes.h b/src/or/entrynodes.h
index 0e58802cbe..de8c60c33d 100644
--- a/src/or/entrynodes.h
+++ b/src/or/entrynodes.h
@@ -48,17 +48,17 @@ typedef struct entry_guard_t {
time_t last_attempted; /**< 0 if we can connect to this guard, or the time
* at which we last failed to connect to it. */
- unsigned circ_attempts; /**< Number of circuits this guard has "attempted" */
- unsigned circ_successes; /**< Number of successfully built circuits using
+ double circ_attempts; /**< Number of circuits this guard has "attempted" */
+ double circ_successes; /**< Number of successfully built circuits using
* this guard as first hop. */
- unsigned successful_circuits_closed; /**< Number of circuits that carried
+ double successful_circuits_closed; /**< Number of circuits that carried
* streams successfully. */
- unsigned collapsed_circuits; /**< Number of fully built circuits that were
+ double collapsed_circuits; /**< Number of fully built circuits that were
* remotely closed before any streams were
* attempted. */
- unsigned unusable_circuits; /**< Number of circuits for which streams were
+ double unusable_circuits; /**< Number of circuits for which streams were
* attempted, but none succeeded. */
- unsigned timeouts; /**< Number of 'right-censored' circuit timeouts for this
+ double timeouts; /**< Number of 'right-censored' circuit timeouts for this
* guard. */
} entry_guard_t;
@@ -111,7 +111,7 @@ int find_transport_by_bridge_addrport(const tor_addr_t *addr, uint16_t port,
int validate_pluggable_transports_config(void);
-int pathbias_get_closed_count(entry_guard_t *gaurd);
+double pathbias_get_closed_count(entry_guard_t *gaurd);
#endif