mirror of
https://github.com/kiwix/kiwix-tools.git
synced 2025-09-24 04:20:56 -04:00
+ use kiwix:sleep()
This commit is contained in:
parent
5002033987
commit
a768ecbf29
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user