diff --git a/Code-C/main.c b/Code-C/main.c index bdb297f..1bacd00 100644 --- a/Code-C/main.c +++ b/Code-C/main.c @@ -53,8 +53,6 @@ void *threadCalculBoth(void *vargp){ char* fileName; while(rawDataWriteFlag){ while(queueGetNextE(rawDataQueue) != NULL){ - - printf("ertyu\n"); rawDataQueue = queueGetNextE(rawDataQueue); fileName = queueGetTabChar(rawDataQueue); powerFunction(fileName, NULL); @@ -114,7 +112,7 @@ int main(int argc , char** argv){ pthread_t rawData; pthread_create(&rawData , NULL, threadSimulateFlux, (void *)&rawData); pthread_t calcul; - pthread_create(&calcul , NULL, threadCalculBoth, (void *)&calcul); + pthread_create(&calcul , NULL, threadCalculGrowthRate, (void *)&calcul); pthread_exit(NULL); } \ No newline at end of file diff --git a/Code-C/power.c b/Code-C/power.c index a3aa974..8f80d43 100644 --- a/Code-C/power.c +++ b/Code-C/power.c @@ -36,12 +36,11 @@ void powerFunction(char* rawDataFileName, double **pw){ if(p !=NULL){ if(pw == NULL){ powerCalculation(p,pww); - + appendDataInFile("powerData.csv",pww,nCol-1); }else{ powerCalculation(p,*pw); - + appendDataInFile("powerData.csv",*pw,nCol-1); } - appendDataInFile("powerData.csv",*pw,nCol-1); freeArray(p,nRow); } } \ No newline at end of file