From: Timo Tijhof Date: Sat, 17 Mar 2018 02:51:26 +0000 (-0700) Subject: api: Restore fractions for default siprop=dbreplag response X-Git-Tag: 1.31.0-rc.0~363 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/exercices/modifier.php?a=commitdiff_plain;h=1f64fa48d397fca02befcd4fd7502655b9463619;p=lhc%2Fweb%2Fwiklou.git api: Restore fractions for default siprop=dbreplag response Without this fix, the situation is that a query for 'siprop=dbreplag' shows a db server with lag=0, while the siprop=dbreplag&sishowalldb=1 query shows the same server having non-zero lag. That's confusing. Regression from r47865 (88f35cdf6e). Change-Id: Id4854c8453206a6f1f8c369dc89c3a8bd910f83f --- diff --git a/includes/api/ApiQuerySiteinfo.php b/includes/api/ApiQuerySiteinfo.php index f924736de0..3048273267 100644 --- a/includes/api/ApiQuerySiteinfo.php +++ b/includes/api/ApiQuerySiteinfo.php @@ -465,7 +465,7 @@ class ApiQuerySiteinfo extends ApiQueryBase { 'host' => $showHostnames ? $lb->getServerName( $index ) : '', - 'lag' => intval( $lag ) + 'lag' => $lag ]; }