|
|
@ -18,6 +18,7 @@
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
#include <kiwix/xapianIndexer.h>
|
|
|
|
#include <kiwix/xapianIndexer.h>
|
|
|
|
|
|
|
|
#include <otherTools.h>
|
|
|
|
#include <getopt.h>
|
|
|
|
#include <getopt.h>
|
|
|
|
|
|
|
|
|
|
|
|
#ifdef _WIN32
|
|
|
|
#ifdef _WIN32
|
|
|
@ -93,11 +94,7 @@ int main(int argc, char **argv) {
|
|
|
|
while (indexer->isRunning()) {
|
|
|
|
while (indexer->isRunning()) {
|
|
|
|
if (verboseFlag)
|
|
|
|
if (verboseFlag)
|
|
|
|
cout << indexer->getProgression() << "% of all the articles indexed..." << endl;
|
|
|
|
cout << indexer->getProgression() << "% of all the articles indexed..." << endl;
|
|
|
|
#ifdef _WIN32
|
|
|
|
kiwix::sleep(1000);
|
|
|
|
Sleep(1000);
|
|
|
|
|
|
|
|
#else
|
|
|
|
|
|
|
|
sleep(1);
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (verboseFlag)
|
|
|
|
if (verboseFlag)
|
|
|
|
cout << "100% of the articles were successfuly indexed..." << endl;
|
|
|
|
cout << "100% of the articles were successfuly indexed..." << endl;
|
|
|
|