diff options
author | Caio Valente <valentecaio95@gmail.com> | 2018-01-31 02:36:38 +0100 |
---|---|---|
committer | Caio Valente <valentecaio95@gmail.com> | 2018-01-31 02:36:38 +0100 |
commit | a4c85312604c1d215f9f46a24ac242baf666ed56 (patch) | |
tree | 1e2bc081862d5b31b2eefdc5b4efb4fb7d20ac15 /src/or/hibernate.c | |
parent | d2ae1bfcb314965fd1ff1353308da0e92a00c958 (diff) | |
download | tor-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/hibernate.c')
-rw-r--r-- | src/or/hibernate.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/hibernate.c b/src/or/hibernate.c index 4dc35f68d0..7261cf8002 100644 --- a/src/or/hibernate.c +++ b/src/or/hibernate.c @@ -866,7 +866,7 @@ hibernate_end(hibernate_state_t new_state) hibernate_state = new_state; hibernate_end_time = 0; /* no longer hibernating */ - stats_n_seconds_working = 0; /* reset published uptime */ + reset_uptime(); /* reset published uptime */ } /** A wrapper around hibernate_begin, for when we get SIGINT. */ |