aboutsummaryrefslogtreecommitdiff
path: root/src/or/hibernate.h
diff options
context:
space:
mode:
authorSebastian Hahn <sebastian@torproject.org>2011-01-25 16:45:27 +0100
committerNick Mathewson <nickm@torproject.org>2012-01-10 09:59:36 -0500
commit50a50392b7d65409de4416eb604bec6339670a2c (patch)
tree0788dbf5f0bab5cb41cc57c0f9b7c53c24374663 /src/or/hibernate.h
parent2a9b279163da4ba0d870dd5e9b7fc1ae9591127c (diff)
downloadtor-50a50392b7d65409de4416eb604bec6339670a2c.tar.gz
tor-50a50392b7d65409de4416eb604bec6339670a2c.zip
Advertise dirport if accountingmax is large enough
When we have an effective bandwidthrate configured so that we cannot exceed our bandwidth limit in one accounting interval, don't disable advertising the dirport. Implements ticket 2434.
Diffstat (limited to 'src/or/hibernate.h')
-rw-r--r--src/or/hibernate.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/or/hibernate.h b/src/or/hibernate.h
index 78e7bb75e9..d77e946d4f 100644
--- a/src/or/hibernate.h
+++ b/src/or/hibernate.h
@@ -14,6 +14,7 @@
int accounting_parse_options(const or_options_t *options, int validate_only);
int accounting_is_enabled(const or_options_t *options);
+int accounting_get_interval_length(void);
void configure_accounting(time_t now);
void accounting_run_housekeeping(time_t now);
void accounting_add_bytes(size_t n_read, size_t n_written, int seconds);