Vous avez reçu un message "Your GitLab account has been locked ..." ? Pas d'inquiétude : lisez cet article https://docs.gricad-pages.univ-grenoble-alpes.fr/help/unlock/

Commit 60d584cc authored by Arnaud Bey's avatar Arnaud Bey
Browse files

fix import

parent 77e4606f
......@@ -205,29 +205,28 @@ class ImportManager
}
$previousLetter = $wordLetter;
}
}
if ($flushCpt == $maxToFlush) {
$this->wm->createStarts($language, $wordStarts);
$wordStarts = null;
$wordStarts = [];
$this->flushAndFreeMemory();
$flushCpt = 1;
$roots = null;
$roots = [];
$featuresToFlush = null;
$featuresToFlush = [];
$languageId = $specs["language_id"];
$language = $this->em->getRepository(Language::class)->find($languageId);
$percent = round($cpt / $total * 100, 2);
echo("[".$percent."%] ".$wordValue."\n");
$event = $stopwatch->stop($stopwatchName);
if ($flushCpt == $maxToFlush) {
$this->wm->createStarts($language, $wordStarts);
$wordStarts = null;
$wordStarts = [];
$this->flushAndFreeMemory();
$flushCpt = 1;
$roots = null;
$roots = [];
$featuresToFlush = null;
$featuresToFlush = [];
$languageId = $specs["language_id"];
$language = $this->em->getRepository(Language::class)->find($languageId);
$percent = round($cpt / $total * 100, 2);
echo("[".$percent."%] ".$wordValue."\n");
$event = $stopwatch->stop($stopwatchName);
echo "max memory > " . $event->getMemory()/1048576 . " MB \n";
echo "duration > " . $event->getDuration()/1000 . " seconds \n\n";
echo "max memory > " . $event->getMemory()/1048576 . " MB \n";
echo "duration > " . $event->getDuration()/1000 . " seconds \n\n";
$stopwatchName = uniqid();
$stopwatch->start($stopwatchName);
}
$stopwatchName = uniqid();
$stopwatch->start($stopwatchName);
}
}
$cpt++;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment