X-Git-Url: http://git.onelab.eu/?p=distributedratelimiting.git;a=blobdiff_plain;f=drl%2Fcommon_accounting.h;h=0fbcdbe118b0845b4a286ca3731076dd20e95ddc;hp=d656d8aa59598fd724ece4d20dd04e595e2e07d0;hb=a3ef11b996352e66f4031c684c7dcda536bc3bf1;hpb=f54a05e4b5bef7c5c90663765656a9084d622e82 diff --git a/drl/common_accounting.h b/drl/common_accounting.h index d656d8a..0fbcdbe 100644 --- a/drl/common_accounting.h +++ b/drl/common_accounting.h @@ -74,6 +74,26 @@ typedef struct { /** The number of bytes sent since the last_update time. */ uint32_t bytes_since; + /* Statistics below. */ + + /** The current number of flows. */ + uint32_t num_flows; + + /** The number of flows sending above 5KB/s. */ + uint32_t num_flows_5k; + + /** The number of flows sending above 10KB/s. */ + uint32_t num_flows_10k; + + /** The number of flows sending above 20KB/s. */ + uint32_t num_flows_20k; + + /** The number of flows sending above 50KB/s. */ + uint32_t num_flows_50k; + + /** The average flow rate. */ + uint32_t avg_rate; + } common_accounting_t; /** Determines the difference between two timeval structs (in seconds, with