Predis\Cluster\Distributor\HashRing::computeTotalWeight PHP Метод

computeTotalWeight() приватный Метод

Calculates the total weight of all the nodes in the distributor.
private computeTotalWeight ( ) : integer
Результат integer
    private function computeTotalWeight()
    {
        $totalWeight = 0;
        foreach ($this->nodes as $node) {
            $totalWeight += $node['weight'];
        }
        return $totalWeight;
    }