firx error in slave.c
[epclust.git] / old_C_code / stage1 / src / MPI_Main / slave.c
index e66f599..d7d0afe 100644 (file)
@@ -20,7 +20,7 @@ static Result_t* do_work(Work_t* work)
        
        uint32_t nbSeries = work->nbSeries;
        uint32_t tsLength = get_tsLength(work->inputFileName);
-       uint32_t nbValues = (tsLength - 4) / 3;
+       uint32_t nbValues = (tsLength - 4) / 4;
        
        // nbReducedCoordinates = smallest power of 2 which is above nbValues
        uint32_t nbReducedCoordinates = (uint32_t)ceil(log2(nbValues));