Explorar el Código

Fix in the log of the setup: Properly compute the percentage of "useless" records in priv_change.

git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@3248 a333f486-631f-4898-b8df-5754b55c2be0
dflaven hace 11 años
padre
commit
f853d58514
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      setup/applicationinstaller.class.inc.php

+ 1 - 1
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...");