(cherry picked from commit ba27633ca22bcfc18fd4bb7d62c2f5bb32e56962)
... | ... |
@@ -638,6 +638,10 @@ int dp_init_relative_weights(ds_set_t *dset) |
638 | 638 |
/* if the array was not completely filled (i.e., the sum of rweights is |
639 | 639 |
* less than 100 due to truncated), then use last address to fill the rest */ |
640 | 640 |
last_insert = t > 0 ? dset->rwlist[t - 1] : (unsigned int)(dset->nr - 1); |
641 |
+ if(t < 100) { |
|
642 |
+ LM_INFO("extra rweight %d for last active destination in group %d\n", |
|
643 |
+ (100-t), dset->id); |
|
644 |
+ } |
|
641 | 645 |
for(j = t; j < 100; j++) |
642 | 646 |
dset->rwlist[j] = last_insert; |
643 | 647 |
|
... | ... |
@@ -691,6 +695,10 @@ int dp_init_weights(ds_set_t *dset) |
691 | 695 |
} |
692 | 696 |
/* if the array was not completely filled (i.e., the sum of weights is |
693 | 697 |
* less than 100), then use last address to fill the rest */ |
698 |
+ if(t < 100) { |
|
699 |
+ LM_INFO("extra weight %d for last destination in group %d\n", |
|
700 |
+ (100-t), dset->id); |
|
701 |
+ } |
|
694 | 702 |
for(; t < 100; t++) |
695 | 703 |
dset->wlist[t] = (unsigned int)(dset->nr - 1); |
696 | 704 |
randomize: |