objectcache: Cast explicitly to integer

To avoid logspam flood

Bug: T393879
Change-Id: Iaee7b9b38d0bf8ace883800198a571e341f22010
(cherry picked from commit dc6c301b4b1b279c6f1ff459cd0eafc098cf3894)
This commit is contained in:
Amir Sarabadani 2025-05-12 12:31:33 +02:00 committed by Reedy
parent cf84a740bd
commit 7f5acfeaca

View file

@ -1520,7 +1520,7 @@ class SqlBagOStuff extends MediumSpecificBagOStuff {
// `( 9 / 10 ) + ( 0.3 / 10 ) = 0.93`, or 93% done, overall.
$overallRatio = ( $progress['serversDone'] / $progress['serversTotal'] ) +
( $tablesDoneRatio / $progress['serversTotal'] );
( $progress['fn'] )( $overallRatio * 100 );
( $progress['fn'] )( (int)( $overallRatio * 100 ) );
}
} while ( $res->numRows() && $keysDeletedCount < $limit );
}