From fbce91bb39c4edd9b47b5082a3cc5e290627002f Mon Sep 17 00:00:00 2001 From: Benjamin Sonntag <benjamin@octopuce.fr> Date: Mon, 16 Nov 2015 08:27:56 +0100 Subject: [PATCH] put comment on the sleep() --- bureau/class/m_bro.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bureau/class/m_bro.php b/bureau/class/m_bro.php index a08b2285..030809db 100644 --- a/bureau/class/m_bro.php +++ b/bureau/class/m_bro.php @@ -567,13 +567,13 @@ class m_bro { $m = $m & (~ 0222); // ugo-w } $action->chmod($absolute . "/" . $d[$i], $m); - // We'd like to *wait* for this to complete, but since this is essentially asynchronous, we can't be sure easily - // So we chose to wait a little bit (2 sec) at the end of the loop... if ($verbose) { echo "chmod " . sprintf('%o', $m) . " file, was " . sprintf('%o', fileperms($absolute . "/" . $d[$i])) . " -- " . $perm[$i]['w']; } } } + // We'd like to *wait* for this to complete, but since this is essentially asynchronous, we can't be sure easily + // So we chose to wait a little bit (2 sec) at the end of the loop... sleep(2); return true; }