Revert "BUG-13506 Corrección de formato"

This reverts commit 751efeb4fc2c872f0f0c9569949473618848d65e.
This commit is contained in:
Roly Rudy Gutierrez Pinto
2013-11-25 17:47:08 -04:00
parent d49dd2a940
commit dc7e950351
3 changed files with 9 additions and 11 deletions

View File

@@ -1417,15 +1417,13 @@ class workspaceTools
public function backupLogFiles()
{
$config = System::getSystemConfiguration();
clearstatcache();
$path = PATH_DATA . "log" . PATH_SEP;
$filePath = $path . "cron.log";
if (file_exists($filePath)) {
$size = filesize($filePath);
/* $config['size_log_file'] has the value 5000000 -> approximately 5 megabytes */
if ($size > $config['size_log_file']) {
/* 5000000 -> approximately 5 megabytes */
if ($size > 5000000) {
rename($filePath, $filePath . ".bak");
}
}