git://git.onelab.eu
/
distributedratelimiting.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Signal documentation
[distributedratelimiting.git]
/
drl
/
samplehold.c
diff --git
a/drl/samplehold.c
b/drl/samplehold.c
index
f98e5df
..
9a30995
100644
(file)
--- a/
drl/samplehold.c
+++ b/
drl/samplehold.c
@@
-379,6
+379,10
@@
void sampled_table_update_flows(sampled_flow_table table, struct timeval now, do
}
}
+ if (table->common->num_flows > 0) {
+ table->common->avg_rate = table->common->rate / table->common->num_flows;
+ }
+
table->common->max_flow_rate = largest_rate;
}