removed debug delays

This commit is contained in:
Jonathan Treffler 2024-01-24 20:19:47 +01:00 committed by root
parent 9280da6f0e
commit 4870225d66

View file

@ -38,11 +38,11 @@ class RecursiveDiff {
$scan_num_files = 0;
if(file_exists($this->dir1) && is_dir($this->dir1)) {
list($this->scan1files, $this->scan1folders) = FileHelper::getFilesAndFolders($this->dir1);
[$this->scan1files, $this->scan1folders] = FileHelper::getFilesAndFolders($this->dir1);
}
if(file_exists($this->dir2) && is_dir($this->dir2)) {
list($this->scan2files, $this->scan2folders) = FileHelper::getFilesAndFolders($this->dir2);
[$this->scan2files, $this->scan2folders] = FileHelper::getFilesAndFolders($this->dir2);
}
$scan_num_files += sizeof($this->scan1files);
@ -139,7 +139,6 @@ class RecursiveDiff {
$this->progress += 2;
$this->updateProgress();
sleep(1);
break;
}
@ -160,7 +159,6 @@ class RecursiveDiff {
$this->progress++;
$this->updateProgress();
sleep(1);
}
foreach($fileDeletions as $index=>$deletion) {
@ -176,7 +174,6 @@ class RecursiveDiff {
$this->progress++;
$this->updateProgress();
sleep(1);
}
foreach($filePossibleEdits as $possibleEdit) {
@ -187,7 +184,6 @@ class RecursiveDiff {
$this->progress += 2;
$this->updateProgress();
sleep(1);
if(filemtime($file1) == filemtime($file2)) {
//not different because same mtime