aboutsummaryrefslogtreecommitdiff
path: root/src/feature/stats
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2018-09-20 14:19:47 -0400
committerNick Mathewson <nickm@torproject.org>2018-09-20 14:19:47 -0400
commita406255cf395b053d6216df4252ad1320ab73a54 (patch)
tree5f092bff9e424b1218f05540408dc117a80e6f81 /src/feature/stats
parent4e2028152d31e27c44d0c2ef31dca829c6ae2d2e (diff)
parent72e30f26ec291baba202b71e121c3211af2db371 (diff)
downloadtor-a406255cf395b053d6216df4252ad1320ab73a54.tar.gz
tor-a406255cf395b053d6216df4252ad1320ab73a54.zip
Merge branch 'bug23512-v4-029-fixes'
Diffstat (limited to 'src/feature/stats')
-rw-r--r--src/feature/stats/rephist.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/feature/stats/rephist.c b/src/feature/stats/rephist.c
index edb079ef2d..2588bb4c00 100644
--- a/src/feature/stats/rephist.c
+++ b/src/feature/stats/rephist.c
@@ -998,7 +998,7 @@ rep_hist_load_mtbf_data(time_t now)
/** Structure to track bandwidth use, and remember the maxima for a given
* time period.
*/
-typedef struct bw_array_t {
+struct bw_array_t {
/** Observation array: Total number of bytes transferred in each of the last
* NUM_SECS_ROLLING_MEASURE seconds. This is used as a circular array. */
uint64_t obs[NUM_SECS_ROLLING_MEASURE];
@@ -1025,7 +1025,7 @@ typedef struct bw_array_t {
/** Circular array of the total bandwidth usage for the last NUM_TOTALS
* periods */
uint64_t totals[NUM_TOTALS];
-} bw_array_t;
+};
/** Shift the current period of b forward by one. */
STATIC void