summaryrefslogtreecommitdiff
path: root/src/or/main.h
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/main.h
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/main.h')
-rw-r--r--src/or/main.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/main.h b/src/or/main.h
index c49d216f4e..f01506fcea 100644
--- a/src/or/main.h
+++ b/src/or/main.h
@@ -63,6 +63,7 @@ void reschedule_descriptor_update_check(void);
void reschedule_directory_downloads(void);
MOCK_DECL(long,get_uptime,(void));
+MOCK_DECL(void,reset_uptime,(void));
unsigned get_signewnym_epoch(void);
@@ -87,7 +88,6 @@ uint64_t get_main_loop_error_count(void);
uint64_t get_main_loop_idle_count(void);
extern time_t time_of_process_start;
-extern long stats_n_seconds_working;
extern int quiet_level;
extern int global_read_bucket;
extern int global_write_bucket;