summaryrefslogtreecommitdiff
path: root/src/or/hibernate.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/or/hibernate.c')
-rw-r--r--src/or/hibernate.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/hibernate.c b/src/or/hibernate.c
index 193594b63b..9a1d808572 100644
--- a/src/or/hibernate.c
+++ b/src/or/hibernate.c
@@ -934,7 +934,7 @@ getinfo_helper_accounting(control_connection_t *conn,
{
(void) conn;
if (!strcmp(question, "accounting/enabled")) {
- *answer = tor_strdup(get_options()->AccountingMax ? "1" : "0");
+ *answer = tor_strdup(accounting_is_enabled(get_options()) ? "1" : "0");
} else if (!strcmp(question, "accounting/hibernating")) {
if (hibernate_state == HIBERNATE_STATE_DORMANT)
*answer = tor_strdup("hard");