dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b942fc2
)
Update an old comment that predated IPv6
author
Thalia
<thalia.e.chan@googlemail.com>
Wed, 1 May 2019 17:28:55 +0000
(18:28 +0100)
committer
Thalia
<thalia.e.chan@googlemail.com>
Wed, 1 May 2019 17:28:55 +0000
(18:28 +0100)
Change-Id: Ia9968eab3793f275cd7ca6a35cfd5b0bcc9604c5
includes/Block.php
patch
|
blob
|
history
diff --git
a/includes/Block.php
b/includes/Block.php
index
3f17d84
..
3ac367a
100644
(file)
--- 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 {