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:56:21 -0400 |
commit | c5eb601e60760eb56d41ec08970cb151511bf2ea (patch) | |
tree | d001c551a6fe4c213d84ecd605d6aca0235c5ab0 /src/feature/stats | |
parent | 2fc8257ac4c3b404f5e41eda8ea98eaaad6c3a5c (diff) | |
download | tor-c5eb601e60760eb56d41ec08970cb151511bf2ea.tar.gz tor-c5eb601e60760eb56d41ec08970cb151511bf2ea.zip |
Rename private bandwidth-history identifiers to start with "bwhist".
This commit is a simple search-and-replace in bwhist.c
Diffstat (limited to 'src/feature/stats')
-rw-r--r-- | src/feature/stats/bwhist.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/feature/stats/bwhist.c b/src/feature/stats/bwhist.c index 2bc533e660..527f0128f9 100644 --- a/src/feature/stats/bwhist.c +++ b/src/feature/stats/bwhist.c @@ -280,7 +280,7 @@ bwhist_bandwidth_assess,(void)) * It returns the number of bytes written. */ static size_t -rep_hist_fill_bandwidth_history(char *buf, size_t len, const bw_array_t *b) +bwhist_fill_bandwidth_history(char *buf, size_t len, const bw_array_t *b) { char *cp = buf; int i, n; @@ -367,7 +367,7 @@ bwhist_get_bandwidth_lines(void) break; } tor_assert(b); - slen = rep_hist_fill_bandwidth_history(tmp, MAX_HIST_VALUE_LEN, b); + slen = bwhist_fill_bandwidth_history(tmp, MAX_HIST_VALUE_LEN, b); /* If we don't have anything to write, skip to the next entry. */ if (slen == 0) continue; @@ -386,7 +386,7 @@ bwhist_get_bandwidth_lines(void) /** Write a single bw_array_t into the Values, Ends, Interval, and Maximum * entries of an or_state_t. Done before writing out a new state file. */ static void -rep_hist_update_bwhist_state_section(or_state_t *state, +bwhist_update_bwhist_state_section(or_state_t *state, const bw_array_t *b, smartlist_t **s_values, smartlist_t **s_maxima, @@ -449,7 +449,7 @@ void bwhist_update_state(or_state_t *state) { #define UPDATE(arrname,st) \ - rep_hist_update_bwhist_state_section(state,\ + bwhist_update_bwhist_state_section(state,\ (arrname),\ &state->BWHistory ## st ## Values, \ &state->BWHistory ## st ## Maxima, \ @@ -470,7 +470,7 @@ bwhist_update_state(or_state_t *state) /** Load a single bw_array_t from its Values, Ends, Maxima, and Interval * entries in an or_state_t. Done while reading the state file. */ static int -rep_hist_load_bwhist_state_section(bw_array_t *b, +bwhist_load_bwhist_state_section(bw_array_t *b, const smartlist_t *s_values, const smartlist_t *s_maxima, const time_t s_begins, @@ -555,7 +555,7 @@ bwhist_load_state(or_state_t *state, char **err) tor_assert(dir_read_array && dir_write_array); #define LOAD(arrname,st) \ - if (rep_hist_load_bwhist_state_section( \ + if (bwhist_load_bwhist_state_section( \ (arrname), \ state->BWHistory ## st ## Values, \ state->BWHistory ## st ## Maxima, \ |