git://git.onelab.eu
/
distributedratelimiting.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
fa999b0
)
Print instananeous rate rather than ewma-affected rate.
author
Kevin Webb
<kcwebb@ucsd.edu>
Fri, 21 Nov 2008 23:49:01 +0000
(23:49 +0000)
committer
Kevin Webb
<kcwebb@ucsd.edu>
Fri, 21 Nov 2008 23:49:01 +0000
(23:49 +0000)
drl/estimate.c
patch
|
blob
|
history
diff --git
a/drl/estimate.c
b/drl/estimate.c
index
047d5f3
..
3ed7b3f
100644
(file)
--- a/
drl/estimate.c
+++ b/
drl/estimate.c
@@
-243,7
+243,7
@@
static uint32_t allocate_fps(identity_t *ident, double total_weight) {
gettimeofday(&tv, NULL);
time_now = (double) tv.tv_sec + (double) ((double) tv.tv_usec / (double) 1000000);
gettimeofday(&tv, NULL);
time_now = (double) tv.tv_sec + (double) ((double) tv.tv_usec / (double) 1000000);
- printlog(LOG_WARN, "%.2f %d %.2f %.2f %.2f %d %d %d %d %d %d ", time_now,
local
_rate, idealweight,
+ printlog(LOG_WARN, "%.2f %d %.2f %.2f %.2f %d %d %d %d %d %d ", time_now,
ftable->inst
_rate, idealweight,
ident->localweight, total_weight, ftable->num_flows, ftable->num_flows_5k, ftable->num_flows_10k,
ftable->num_flows_20k, ftable->num_flows_50k, ftable->avg_rate);
printcounter = PRINT_COUNTER_RESET;
ident->localweight, total_weight, ftable->num_flows, ftable->num_flows_5k, ftable->num_flows_10k,
ftable->num_flows_20k, ftable->num_flows_50k, ftable->avg_rate);
printcounter = PRINT_COUNTER_RESET;