X-Git-Url: http://git.onelab.eu/?p=distributedratelimiting.git;a=blobdiff_plain;f=drl%2Fulogd_DRL.c;h=bc82995b243f874cbb31b57fb365361f7e2dd20c;hp=e8e0747be381d563322a8d96c660a28715a67129;hb=5196115d2999ca57181ef592e7907d7afb14c1b3;hpb=1283484fb8f6a4531219984cf4d8d54e14a2ad05 diff --git a/drl/ulogd_DRL.c b/drl/ulogd_DRL.c index e8e0747..bc82995 100644 --- 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; - ident->limit = (uint32_t) (((double) config->limit * 1000000.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,