Revision 8bda7a99

View differences:

topology.c
383 383
    nidset_shuffle(others, others_size);
384 384
    nidset_add_i(selecteds, &selecteds_size, max_ids, others, NEIGHBORHOOD_TARGET_SIZE ? MIN(others_size, NEIGHBORHOOD_TARGET_SIZE - selecteds_size) : others_size);
385 385

  
386
    fprintf(stderr,"Topo modify - desired: %ld of %ld (target=%d sel=%ld); random: selected %ld of %ld \n", desireds_size, nodeids_size, desired_part, MIN(desireds_size,desired_part), NEIGHBORHOOD_TARGET_SIZE ? MIN(others_size, NEIGHBORHOOD_TARGET_SIZE - selecteds_size) : others_size, others_size);
386
    fprintf(stderr,"Topo modify (from:%ld sel:%ld) - desired: %ld of %ld (target:%d sel:%ld); random: from %ld (sel:%ld)\n",
387
            (long)nodeids_size, (long)selecteds_size, (long)desireds_size, (long)nodeids_size, desired_part, (long) MIN(desireds_size,desired_part), (long)others_size, (long)selecteds_size - MIN(desireds_size, desired_part));
387 388
    // add new ones
388 389
    nidset_complement(toadds, &toadds_size, selecteds, selecteds_size, oldids, oldids_size);
389 390
    for (i = 0; i < toadds_size; i++) {

Also available in: Unified diff