From 3f9cbd6adbd9fe5370b6797d0ae56f1bddd6371f Mon Sep 17 00:00:00 2001 From: Thalia Date: Wed, 1 May 2019 18:28:55 +0100 Subject: [PATCH] Update an old comment that predated IPv6 Change-Id: Ia9968eab3793f275cd7ca6a35cfd5b0bcc9604c5 --- includes/Block.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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 { -- 2.20.1