mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-12-06 19:41:15 +01:00
Fix out-of-place declaration
svn:r4640
This commit is contained in:
+1
-1
@@ -865,8 +865,8 @@ accounting_getinfo_helper(const char *question, char **answer)
|
||||
U64_PRINTF_ARG(n_bytes_read_in_interval),
|
||||
U64_PRINTF_ARG(n_bytes_written_in_interval));
|
||||
} else if (!strcmp(question, "accounting/bytes-left")) {
|
||||
*answer = tor_malloc(32);
|
||||
uint64_t limit = get_options()->AccountingMax;
|
||||
*answer = tor_malloc(32);
|
||||
tor_snprintf(*answer, 32, U64_FORMAT" "U64_FORMAT,
|
||||
U64_PRINTF_ARG(limit - n_bytes_read_in_interval),
|
||||
U64_PRINTF_ARG(limit - n_bytes_written_in_interval));
|
||||
|
||||
Reference in New Issue
Block a user