diff options
author | Nick Mathewson <nickm@torproject.org> | 2020-07-10 07:54:04 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2020-07-10 07:54:04 -0400 |
commit | 2fc8257ac4c3b404f5e41eda8ea98eaaad6c3a5c (patch) | |
tree | 98ca2424743e7318c66a529af8c52e3287902618 /src/app/config/statefile.c | |
parent | 8390df917b7e63696c70037765737037cd9162a0 (diff) | |
download | tor-2fc8257ac4c3b404f5e41eda8ea98eaaad6c3a5c.tar.gz tor-2fc8257ac4c3b404f5e41eda8ea98eaaad6c3a5c.zip |
Rename public bandwidth-history identifiers to start with "bwhist".
This is an automated commit, generated by this command:
./scripts/maint/rename_c_identifier.py \
rep_hist_note_bytes_read bwhist_note_bytes_read \
rep_hist_note_bytes_written bwhist_note_bytes_written \
rep_hist_note_dir_bytes_read bwhist_note_dir_bytes_read \
rep_hist_note_dir_bytes_written bwhist_note_dir_bytes_written \
rep_hist_get_bandwidth_lines bwhist_get_bandwidth_lines \
rep_hist_update_state bwhist_update_state \
rep_hist_load_state bwhist_load_state \
rep_hist_bandwidth_assess bwhist_bandwidth_assess
Diffstat (limited to 'src/app/config/statefile.c')
-rw-r--r-- | src/app/config/statefile.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/app/config/statefile.c b/src/app/config/statefile.c index 63205007cd..4198c8a389 100644 --- a/src/app/config/statefile.c +++ b/src/app/config/statefile.c @@ -324,7 +324,7 @@ or_state_set(or_state_t *new_state) tor_free(err); ret = -1; } - if (rep_hist_load_state(global_state, &err)<0) { + if (bwhist_load_state(global_state, &err)<0) { log_warn(LD_GENERAL,"Unparseable bandwidth history state: %s",err); tor_free(err); ret = -1; @@ -523,7 +523,7 @@ or_state_save(time_t now) * to avoid redundant writes. */ (void) subsystems_flush_state(get_state_mgr(), global_state); entry_guards_update_state(global_state); - rep_hist_update_state(global_state); + bwhist_update_state(global_state); circuit_build_times_update_state(get_circuit_build_times(), global_state); if (accounting_is_enabled(get_options())) |