Ignore empty extra lines in train.txt

pull/936/head
AlexeyAB 7 years ago
parent 6fd90762c5
commit ec766fc3f1
  1. 2
      src/data.c

@ -46,10 +46,12 @@ char **get_random_paths(char **paths, int n, int m)
pthread_mutex_lock(&mutex);
//printf("n = %d \n", n);
for(i = 0; i < n; ++i){
do {
int index = random_gen() % m;
random_paths[i] = paths[index];
//if(i == 0) printf("%s\n", paths[index]);
//printf("grp: %s\n", paths[index]);
} while (strlen(random_paths[i]) == 0);
}
pthread_mutex_unlock(&mutex);
return random_paths;

Loading…
Cancel
Save