Merge "apisandbox.js: Use findFirstSelectableitem instead of getFirstSelectableItem"
[lhc/web/wiklou.git] / includes / libs / rdbms / loadmonitor / LoadMonitor.php
index 4db9e10..8292c03 100644 (file)
@@ -146,7 +146,7 @@ class LoadMonitor implements ILoadMonitor {
                        if ( $conn ) {
                                $close = false; // already open
                        } else {
-                               $conn = $this->parent->openConnection( $i, $domain );
+                               $conn = $this->parent->openConnection( $i, '' );
                                $close = true; // new connection
                        }
 
@@ -157,7 +157,7 @@ class LoadMonitor implements ILoadMonitor {
                        $newWeight = $movAveRatio * $coefficient + ( 1 - $movAveRatio ) * $lastWeight;
 
                        // Scale from 10% to 100% of nominal weight
-                       $weightScales[$i] = max( $newWeight, .10 );
+                       $weightScales[$i] = max( $newWeight, 0.10 );
 
                        if ( !$conn ) {
                                $lagTimes[$i] = false;