diff options
author | Nick Mathewson <nickm@torproject.org> | 2007-02-02 20:06:43 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2007-02-02 20:06:43 +0000 |
commit | fefba953634ef35e2ec83716924c84a375e86ad6 (patch) | |
tree | 58f786243ef3553a70dedc8f34db668764071099 /src/or/hibernate.c | |
parent | e521c96cb191ae746e06304b6bba49d925f63469 (diff) | |
download | tor-fefba953634ef35e2ec83716924c84a375e86ad6.tar.gz tor-fefba953634ef35e2ec83716924c84a375e86ad6.zip |
r11629@catbus: nickm | 2007-02-02 15:06:17 -0500
Removing the last DOCDOC comment hurt so much that I had to use Doxygen to identify undocumented macros and comments, and add 150 more DOCDOCs to point out where they were. Oops. Hey, kids! Fixing some of these could be your first Tor patch!
svn:r9477
Diffstat (limited to 'src/or/hibernate.c')
-rw-r--r-- | src/or/hibernate.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/or/hibernate.c b/src/or/hibernate.c index 29736e6927..22f6e6f0fc 100644 --- a/src/or/hibernate.c +++ b/src/or/hibernate.c @@ -25,18 +25,24 @@ hibernating, phase 2: #include "or.h" +/** DOCDOC */ #define HIBERNATE_STATE_LIVE 1 +/** DOCDOC */ #define HIBERNATE_STATE_EXITING 2 +/** DOCDOC */ #define HIBERNATE_STATE_LOWBANDWIDTH 3 +/** DOCDOC */ #define HIBERNATE_STATE_DORMANT 4 extern long stats_n_seconds_working; /* published uptime */ +/** DOCDOC */ static int hibernate_state = HIBERNATE_STATE_LIVE; /** If are hibernating, when do we plan to wake up? Set to 0 if we * aren't hibernating. */ static time_t hibernate_end_time = 0; +/** DOCDOC */ typedef enum { UNIT_MONTH=1, UNIT_WEEK=2, UNIT_DAY=3, } time_unit_t; @@ -69,8 +75,9 @@ typedef enum { * step one. */ -/** How many bytes have we read/written in this accounting interval? */ +/** How many bytes have we read in this accounting interval? */ static uint64_t n_bytes_read_in_interval = 0; +/** How many bytes have we written in this accounting interval? */ static uint64_t n_bytes_written_in_interval = 0; /** How many seconds have we been running this interval? */ static uint32_t n_seconds_active_in_interval = 0; |