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:
1283484
)
Made the print interval faster. Made the limit be specified in Kb/s rather than...
author
Kevin Webb
<kcwebb@ucsd.edu>
Thu, 20 Nov 2008 20:09:41 +0000
(20:09 +0000)
committer
Kevin Webb
<kcwebb@ucsd.edu>
Thu, 20 Nov 2008 20:09:41 +0000
(20:09 +0000)
drl/estimate.c
patch
|
blob
|
history
drl/ulogd_DRL.c
patch
|
blob
|
history
diff --git
a/drl/estimate.c
b/drl/estimate.c
index
80560ea
..
8b3bb9a
100644
(file)
--- a/
drl/estimate.c
+++ b/
drl/estimate.c
@@
-18,7
+18,7
@@
#include "ratetypes.h" /* needs util and pthread.h */
#include "logging.h"
#include "ratetypes.h" /* needs util and pthread.h */
#include "logging.h"
-#define PRINT_COUNTER_RESET (
7
)
+#define PRINT_COUNTER_RESET (
0
)
extern uint8_t system_loglevel;
static int printcounter = PRINT_COUNTER_RESET - 1;
extern uint8_t system_loglevel;
static int printcounter = PRINT_COUNTER_RESET - 1;
diff --git
a/drl/ulogd_DRL.c
b/drl/ulogd_DRL.c
index
e8e0747
..
bc82995
100644
(file)
--- a/
drl/ulogd_DRL.c
+++ b/
drl/ulogd_DRL.c
@@
-521,7
+521,7
@@
static identity_t *new_identity(ident_config *config) {
memset(comm_nodes, 0, config->peer_count * sizeof(remote_node_t));
ident->id = config->id;
memset(comm_nodes, 0, config->peer_count * sizeof(remote_node_t));
ident->id = config->id;
- ident->limit = (uint32_t) (((double) config->limit * 1000
000
.0) / 8.0);
+ ident->limit = (uint32_t) (((double) config->limit * 1000.0) / 8.0);
ident->fixed_ewma_weight = config->fixed_ewma_weight;
ident->intervals = config->intervals;
ident->ewma_weight = pow(ident->fixed_ewma_weight,
ident->fixed_ewma_weight = config->fixed_ewma_weight;
ident->intervals = config->intervals;
ident->ewma_weight = pow(ident->fixed_ewma_weight,