summaryrefslogtreecommitdiff
path: root/src/or/hibernate.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/or/hibernate.c')
-rw-r--r--src/or/hibernate.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/or/hibernate.c b/src/or/hibernate.c
index 0eebd74fe3..186ea314fa 100644
--- a/src/or/hibernate.c
+++ b/src/or/hibernate.c
@@ -35,6 +35,10 @@ static int hibernate_state = HIBERNATE_STATE_LIVE;
* aren't hibernating. */
static time_t hibernate_end_time = 0;
+typedef enum {
+ UNIT_MONTH, UNIT_WEEK, UNIT_DAY,
+} time_unit_t;
+
/* Fields for accounting logic. Accounting overview:
*
* Accounting is designed to ensure that no more than N bytes are sent
@@ -196,6 +200,7 @@ update_expected_bandwidth(void)
uint32_t max_configured = (get_options()->BandwidthRateBytes * 60);
/* XXX max_configured will be false if it exceeds
* get_options()->AccountingMaxKB*1000, right? -RD
+ * XXX Huh? Why? How? -NM
*/
if (n_seconds_active_in_interval < 1800) {