Revision e31aecb0 streaming.c

View differences:

streaming.c
282 282

  
283 283
    for (i = 0;i < size; i++) chunkps[i] = buff+i;
284 284
    for (i = 0; i<n; i++) peerps[i] = neighbours+i;
285
    selectPeersForChunks(SCHED_WEIGHTED, peerps, n, chunkps, size, selectedpeers, &selectedpeers_len, needs, peerWeightRtt);	//select a peer that needs at least one of our chunks
285
    selectPeersForChunks(SCHED_WEIGHTED, peerps, n, chunkps, size, selectedpeers, &selectedpeers_len, needs, peerWeightReceivedfrom);	//select a peer that needs at least one of our chunks
286 286

  
287 287
    for (i=0; i<selectedpeers_len ; i++){
288 288
      int max_deliver = 1;

Also available in: Unified diff