summaryrefslogtreecommitdiff
path: root/src/or/router.c
diff options
context:
space:
mode:
authorCaio Valente <valentecaio95@gmail.com>2018-01-31 02:36:38 +0100
committerCaio Valente <valentecaio95@gmail.com>2018-01-31 02:36:38 +0100
commita4c85312604c1d215f9f46a24ac242baf666ed56 (patch)
tree1e2bc081862d5b31b2eefdc5b4efb4fb7d20ac15 /src/or/router.c
parentd2ae1bfcb314965fd1ff1353308da0e92a00c958 (diff)
downloadtor-a4c85312604c1d215f9f46a24ac242baf666ed56.tar.gz
tor-a4c85312604c1d215f9f46a24ac242baf666ed56.zip
refactor: using get_uptime() (and reset_uptime()) consistently.
Using get_uptime() and reset_uptime() instead of accessing stats_n_seconds_working directly. stats_n_seconds_working is not extern anymore. Ticket #25081
Diffstat (limited to 'src/or/router.c')
-rw-r--r--src/or/router.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/router.c b/src/or/router.c
index 9c053cad46..ddfc187e9f 100644
--- a/src/or/router.c
+++ b/src/or/router.c
@@ -2922,7 +2922,7 @@ router_dump_router_to_string(routerinfo_t *router,
proto_line,
published,
fingerprint,
- stats_n_seconds_working,
+ get_uptime(),
(int) router->bandwidthrate,
(int) router->bandwidthburst,
(int) router->bandwidthcapacity,