dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(from parent 1:
52d871d
)
Merge "Update an old comment that predated IPv6"
author
jenkins-bot
<jenkins-bot@gerrit.wikimedia.org>
Wed, 1 May 2019 18:25:10 +0000
(18:25 +0000)
committer
Gerrit Code Review
<gerrit@wikimedia.org>
Wed, 1 May 2019 18:25:10 +0000
(18:25 +0000)
includes/Block.php
patch
|
blob
|
history
diff --git
a/includes/Block.php
b/includes/Block.php
index
489cc66
..
0d13f7d
100644
(file)
--- a/
includes/Block.php
+++ b/
includes/Block.php
@@
-391,8
+391,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 {