weight
val = weight[n];
static const int weight[5] = { 0, 1, 7, 22, 100 };
val += weight[5 - cb.cv_force - cb.cv_win];
val += weight[5 - cb.cv_force - cb.cv_win];
#define FOOD(name,prob,delay,weight,nutrition) { name, NULL, NULL, 1, 1,\
FOOD_SYM, prob, delay, weight, 0, 0, nutrition }
int weight(struct obj *);
if (iw + weight(obj) > 0)
obj->owt = weight(obj);
otmp->owt = weight(otmp); /* -= obj->owt ? */
obj->owt = weight(obj);
otmp->owt = weight(otmp);
obj->owt = weight(obj); /* defined after setting otyp+quan */
obj->owt = weight(obj);
u_int priority, weight, port;
weight = ns_get16(rdata); rdata += NS_INT16SZ;
len = snprintf(t, sizeof(t), "%u %u %u ", priority, weight,
int port, pri, weight;
weight = _getshort(cp);
srv->weight = weight;
(!srv->weight || srvlist->weight))) {
&& (!srv->weight ||
csrv->next->weight))
int port, pri, weight;
red_alloc(int weight, int inv_pmax, int th_min, int th_max, int flags,
if (weight == 0)
rp->red_weight = weight;
if (weight == 0) {
wtab_alloc(int weight)
if (w->w_weight == weight) {
w->w_weight = weight;
w->w_tab[0] = ((weight - 1) << FP_SHIFT) / weight;
q_stats->weight = rp->red_weight;
int weight;
rio_alloc(int weight, struct redparams *params, int flags, int pkttime)
if (weight != 0)
rp->rio_weight = weight;
q_stats->weight = rp->rio_weight;
int weight;
queue->weight = 100;
if ((byte = queue->bytes * 100 / queue->weight) > max_byte) {
if (swp->weight < 0)
old = queue->weight;
queue->weight = swp->weight;
swp->weight = old;
stats->weight = queue->weight;
queue->weight = 100;
int weight; /* weight in percent */
int weight;
int weight; /* weight in percent */
#define WFQ_ADDQUOTA(q) ((q)->quota += WFQ_QUOTA * (q)->weight / 100)
int weight;
weight = b->ni_fails - a->ni_fails;
if (abs(weight) > 1)
return weight;
red_stats.weight, red_stats.inv_pmax,
rio_stats.weight, rio_stats.q_limit);
top[j]->stats.weight,
weight = (int)strtol(*argv, NULL, 0);
if (weight != 0) {
w = weight;
if (weight != w) {
weight);
if (qcmd_red_add_if(ifname, bandwidth, weight, inv_pmax,
qcmd_red_add_if(const char *ifname, u_int bandwidth, int weight,
error = qop_red_add_if(NULL, ifname, bandwidth, weight, inv_pmax,
u_int bandwidth, int weight, int inv_pmax, int th_min,
red_ifinfo->weight = weight;
conf.red_weight = red_ifinfo->weight;
int weight = 0; /* 0: use default */
int weight; /* weight for EWMA */
int qcmd_red_add_if(const char *ifname, u_int bandwidth, int weight,
u_int bandwidth, int weight, int inv_pmax, int th_min,
weight = (int)strtol(*argv, NULL, 0);
if (weight != 0) {
w = weight;
if (weight != w) {
weight);
if (qcmd_rio_add_if(ifname, bandwidth, weight,
qcmd_rio_add_if(const char *ifname, u_int bandwidth, int weight,
error = qop_rio_add_if(NULL, ifname, bandwidth, weight, red_params,
u_int bandwidth, int weight, struct redparams *red_params,
rio_ifinfo->weight = weight;
conf.rio_weight = rio_ifinfo->weight;
int weight = 0; /* 0: use default */
int weight; /* weight for EWMA */
int qcmd_rio_add_if(const char *ifname, u_int bandwidth, int weight,
u_int bandwidth, int weight, struct redparams *red_params,
double weight = col_weights[icol - 1];
log(((double)ndoc / ndocshitcount))* weight;
tf += (((double)nhitcount * weight)