Commit b6cccab6 authored by Emeric Verschuur's avatar Emeric Verschuur

--no commit message

--no commit message
parent 116a0ad5
......@@ -196,7 +196,7 @@ void LrScene::generateImage(int nbThreads)
cout << "Nombre de threads : "<< nbThreads << endl;
cout << "[.........10........20........30........40........50........60........70........80........90.........]\r[ " << flush;
cout << "[.........10........20........30........40.........]\r[ " << flush;
gettimeofday(&tvCalculBeg, NULL);
for( int i=0 ; i < nbThreads ; i++ ){
......@@ -213,7 +213,11 @@ void LrScene::generateImage(int nbThreads)
cout << (char)8 << curs[itcurs] << flush;
itcurs = (itcurs==3?0:itcurs+1);
}while(sem_trywait(&sem)!=0);
cout << (char)8 << '#' << ' ' << flush;
if(i==49){
cout << (char)8 << "#\n[.........60........70........80........90.........]\r[ " << flush;
}else{
cout << (char)8 << '#' << ' ' << flush;
}
}
for( int i=0 ; i < nbThreads ; i++ ){
......
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