From 60880cda84fb98f70e2a70ce073e4803eddd4a1c Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Fri, 12 Nov 2004 16:39:03 +0000 Subject: Resolve a bunch of FIXME items; mark a lot more for attention; ask for clarification on some. Turn all XXXX008 ("showstopper for 0.0.8 release") items into XXXX009 or XXXX, since plainly they were not showstoppers for 0.0.8. Add/clean some docs. svn:r2808 --- src/or/hibernate.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/or/hibernate.c') 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) { -- cgit v1.2.3-54-g00ecf