From 1f64fa48d397fca02befcd4fd7502655b9463619 Mon Sep 17 00:00:00 2001 From: Timo Tijhof Date: Fri, 16 Mar 2018 19:51:26 -0700 Subject: [PATCH] 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 --- includes/api/ApiQuerySiteinfo.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ]; } -- 2.20.1