Commit 74bca7ae authored by Matthieu Schaller's avatar Matthieu Schaller
Browse files

Fixed arithmetic exception

parent edb566cf
......@@ -1153,7 +1153,7 @@ void space_do_split(struct space *s, struct cell *c) {
}
/* Set ownership according to the start of the parts array. */
if (count > 0)
if (s->nr_parts > 0)
c->owner =
((c->parts - s->parts) % s->nr_parts) * s->nr_queues / s->nr_parts;
else
......
Supports Markdown
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