ha: Divide virtual IPs evenly among all segments

This commit is contained in:
Tobias Brunner 2018-11-20 16:40:21 +01:00
parent 16a898f5f7
commit 5dbb826da5
1 changed files with 1 additions and 1 deletions

View File

@ -165,7 +165,7 @@ static bool responsible_for(private_ha_attribute_t *this, int offset)
{
u_int segment;
segment = this->kernel->get_segment_int(this->kernel, offset);
segment = offset % this->segments->count(this->segments) + 1;
return this->segments->is_active(this->segments, segment);
}