dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Upgrade phan config to 0.7.1
[lhc/web/wiklou.git]
/
includes
/
libs
/
rdbms
/
loadmonitor
/
LoadMonitor.php
diff --git
a/includes/libs/rdbms/loadmonitor/LoadMonitor.php
b/includes/libs/rdbms/loadmonitor/LoadMonitor.php
index
19550f4
..
c3f8879
100644
(file)
--- a/
includes/libs/rdbms/loadmonitor/LoadMonitor.php
+++ b/
includes/libs/rdbms/loadmonitor/LoadMonitor.php
@@
-107,6
+107,7
@@
class LoadMonitor implements ILoadMonitor {
$key = $this->getCacheKey( $serverIndexes );
# Randomize TTLs to reduce stampedes (4.0 - 5.0 sec)
+ // @phan-suppress-next-line PhanTypeMismatchArgumentInternal
$ttl = mt_rand( 4e6, 5e6 ) / 1e6;
# Keep keys around longer as fallbacks
$staleTTL = 60;