diff options
author | Nick Mathewson <nickm@torproject.org> | 2004-11-12 16:39:03 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2004-11-12 16:39:03 +0000 |
commit | 60880cda84fb98f70e2a70ce073e4803eddd4a1c (patch) | |
tree | 185db10e4093e2d98b335e55ba9c84a740065b4f /src/or/hibernate.c | |
parent | 2a5bcb29e65510a5161726fa2317997fe2fc615b (diff) | |
download | tor-60880cda84fb98f70e2a70ce073e4803eddd4a1c.tar.gz tor-60880cda84fb98f70e2a70ce073e4803eddd4a1c.zip |
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
Diffstat (limited to 'src/or/hibernate.c')
-rw-r--r-- | src/or/hibernate.c | 5 |
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) { |