Tor 0.4.9.1-alpha-dev
Data Structures | Macros
bw_array_st.h File Reference

Declaration for bw_array_t structure and related constants. More...

Go to the source code of this file.

Data Structures

struct  bw_array_t
 

Macros

#define NUM_SECS_ROLLING_MEASURE   10
 
#define NUM_SECS_BW_SUM_INTERVAL   (24*60*60)
 
#define NUM_SECS_BW_SUM_IS_VALID   (5*24*60*60)
 
#define NUM_TOTALS   (NUM_SECS_BW_SUM_IS_VALID/NUM_SECS_BW_SUM_INTERVAL)
 

Detailed Description

Declaration for bw_array_t structure and related constants.

Definition in file bw_array_st.h.

Macro Definition Documentation

◆ NUM_SECS_BW_SUM_INTERVAL

#define NUM_SECS_BW_SUM_INTERVAL   (24*60*60)

How large are the intervals for which we track and report bandwidth use?

Definition at line 19 of file bw_array_st.h.

◆ NUM_SECS_BW_SUM_IS_VALID

#define NUM_SECS_BW_SUM_IS_VALID   (5*24*60*60)

How far in the past do we remember and publish bandwidth use?

Definition at line 21 of file bw_array_st.h.

◆ NUM_SECS_ROLLING_MEASURE

#define NUM_SECS_ROLLING_MEASURE   10

For how many seconds do we keep track of individual per-second bandwidth totals?

Definition at line 17 of file bw_array_st.h.

◆ NUM_TOTALS

How many bandwidth usage intervals do we remember? (derived)

Definition at line 23 of file bw_array_st.h.