+ use kiwix:sleep()

This commit is contained in:
kelson42 2014-04-02 16:55:17 +02:00
parent 5002033987
commit a768ecbf29

View File

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