summaryrefslogtreecommitdiff
path: root/src/or/router.c
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2005-01-10 05:10:22 +0000
committerRoger Dingledine <arma@torproject.org>2005-01-10 05:10:22 +0000
commit4b6d55afdf48761eaa1b64f390adb76a12077541 (patch)
tree4f973c7d445089a3d608dc625bb7e5ddf0e30e2a /src/or/router.c
parent3370f530101a470e5f3eb5a89aa02deed6ee02d9 (diff)
downloadtor-4b6d55afdf48761eaa1b64f390adb76a12077541.tar.gz
tor-4b6d55afdf48761eaa1b64f390adb76a12077541.zip
separate time_of_process_start from stats_n_seconds_uptime:
now we reset uptime when a dir fetch entirely fails. this hopefully has something to do with stability of being on the network. svn:r3333
Diffstat (limited to 'src/or/router.c')
-rw-r--r--src/or/router.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/or/router.c b/src/or/router.c
index 9dd0a1b9af..514f49c599 100644
--- a/src/or/router.c
+++ b/src/or/router.c
@@ -13,7 +13,7 @@ const char router_c_id[] = "$Id$";
* and uploading server descriptors, retrying OR connections.
**/
-extern long stats_n_seconds_uptime;
+extern long stats_n_seconds_working;
/** Exposed for test.c. */ void get_platform_str(char *platform, size_t len);
@@ -697,7 +697,7 @@ int router_dump_router_to_string(char *s, size_t maxlen, routerinfo_t *router,
router->platform,
published,
fingerprint,
- stats_n_seconds_uptime,
+ stats_n_seconds_working,
(int) router->bandwidthrate,
(int) router->bandwidthburst,
(int) router->bandwidthcapacity,