aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--fractal-gen.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/fractal-gen.c b/fractal-gen.c
index 612e7ce..5e1e146 100644
--- a/fractal-gen.c
+++ b/fractal-gen.c
@@ -132,11 +132,10 @@ int main(int argc, char **argv)
pthread_create(&sections[i].thread, NULL, generator, &(sections[i]));
}
- s = &(sections[cores-1]);
+ s = &(sections[0]);
while((x = s->idx) < s->datasize)
{
- fprintf(stderr, "Thread %d: %.4f%%\r",
- cores-1,
+ fprintf(stderr, "Thread 0: %.4f%%\r",
100.f*(double)x/s->datasize);
sleep(1);
}