From b04b7c5f455fd2755e148bfa11d5b299ec3571fd Mon Sep 17 00:00:00 2001 From: bhc Date: Thu, 9 May 2024 00:56:56 +0300 Subject: [PATCH] chore: Improve sleep duration in Doctor.php --- src/Appwrite/Platform/Tasks/Doctor.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Appwrite/Platform/Tasks/Doctor.php b/src/Appwrite/Platform/Tasks/Doctor.php index a79763cf42..91554c73be 100644 --- a/src/Appwrite/Platform/Tasks/Doctor.php +++ b/src/Appwrite/Platform/Tasks/Doctor.php @@ -109,7 +109,7 @@ class Doctor extends Action Console::log('🟢 Logging adapter is enabled (' . $providerName . ')'); } - \sleep(0.2); + \usleep(200 * 1000); // Sleep for 0.2 seconds try { Console::log("\n" . '[Connectivity]'); @@ -194,7 +194,7 @@ class Doctor extends Action Console::error('🔴 ' . str_pad("SMTP", 47, '.') . 'disconnected'); } - \sleep(0.2); + \usleep(200 * 1000); // Sleep for 0.2 seconds Console::log(''); Console::log('[Volumes]'); @@ -222,7 +222,7 @@ class Doctor extends Action } } - \sleep(0.2); + \usleep(200 * 1000); // Sleep for 0.2 seconds Console::log(''); Console::log('[Disk Space]');