From: Thalia Date: Wed, 1 May 2019 17:28:55 +0000 (+0100) Subject: Update an old comment that predated IPv6 X-Git-Tag: 1.34.0-rc.0~1835^2 X-Git-Url: http://git.cyclocoop.org/%22%20.%20generer_url_ecrire%28%22suivi_revisions%22%2C%22id_auteur=%24connecte%22%29%20.%20%22?a=commitdiff_plain;h=3f9cbd6adbd9fe5370b6797d0ae56f1bddd6371f;p=lhc%2Fweb%2Fwiklou.git Update an old comment that predated IPv6 Change-Id: Ia9968eab3793f275cd7ca6a35cfd5b0bcc9604c5 --- diff --git a/includes/Block.php b/includes/Block.php index 3f17d843b8..3ac367abd6 100644 --- a/includes/Block.php +++ b/includes/Block.php @@ -392,8 +392,7 @@ class Block { $start = Wikimedia\base_convert( $block->getRangeStart(), 16, 10 ); $size = log( $end - $start + 1, 2 ); - # This has the nice property that a /32 block is ranked equally with a - # single-IP block, which is exactly what it is... + # Rank a range block covering a single IP equally with a single-IP block $score = self::TYPE_RANGE - 1 + ( $size / 128 ); } else {