From 4920cc4aee1d47eabf8633484df856e6a4449e0b Mon Sep 17 00:00:00 2001 From: Denis Flaven Date: Fri, 4 Jul 2014 15:30:36 +0000 Subject: [PATCH] Fix in the log of the setup: Properly compute the percentage of "useless" records in priv_change. SVN:trunk[3248] --- setup/applicationinstaller.class.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup/applicationinstaller.class.inc.php b/setup/applicationinstaller.class.inc.php index 23b4d4354..4a8b0a867 100644 --- a/setup/applicationinstaller.class.inc.php +++ b/setup/applicationinstaller.class.inc.php @@ -573,7 +573,7 @@ class ApplicationInstaller $sOrphanCount = "SELECT COUNT(c.id) FROM `{$sDBPrefix}priv_change` AS c left join `{$sDBPrefix}priv_changeop` AS o ON c.id = o.changeid WHERE o.id IS NULL"; $iOrphanCount = (int)CMDBSource::QueryToScalar($sOrphanCount); - SetupPage::log_info("There are $iOrphanCount useless records in {$sDBPrefix}priv_change (".sprintf('%.2f', ($iOrphanCount/$iTotalCount))."%)"); + SetupPage::log_info("There are $iOrphanCount useless records in {$sDBPrefix}priv_change (".sprintf('%.2f', ((100.0*$iOrphanCount)/$iTotalCount))."%)"); if ($iOrphanCount > 0) { SetupPage::log_info("Removing the orphan records...");