Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/moses-smt/vowpal_wabbit.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Langford <jl@humpty.(none)>2010-09-21 05:59:35 +0400
committerJohn Langford <jl@humpty.(none)>2010-09-21 05:59:35 +0400
commitb896e10dfa7433d2486a9478d474c912955d29a8 (patch)
treed91d88f726b53b69acab2ee0fb15ae37636ac226 /multisource.cc
parentb4d5eb475c659a75a814ee1d229753da194d46fb (diff)
integrated Nikos bugfix & packing
Diffstat (limited to 'multisource.cc')
-rw-r--r--multisource.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/multisource.cc b/multisource.cc
index 61251845..ad1bec05 100644
--- a/multisource.cc
+++ b/multisource.cc
@@ -96,7 +96,7 @@ int receive_features(parser* p, void* ex)
perror(NULL);
exit (1);
}
- for (int index = 0; index < (int)input->files.index(); index++)
+ for (int index = 0; index < (int)(input->files.index()-num_finished); index++)
{
int sock = input->files[index];
if (FD_ISSET(sock, &fds))
@@ -115,6 +115,7 @@ int receive_features(parser* p, void* ex)
p->counts[index]=p->counts[swap_target];
p->counts[swap_target] = temp;
num_finished++;
+ index--;
}
else
{