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