From 3bcd7266a48ff2f1aeb9764ae59a5160a87efb76 Mon Sep 17 00:00:00 2001 From: Zack Spear Date: Wed, 19 Mar 2025 18:19:23 -0700 Subject: [PATCH] fix: reduce sleep duration in UnraidCheck class - Changed the sleep duration between checks from 0.25 seconds to 0.15 seconds in the `UnraidCheck` class to improve responsiveness during checks. This change optimizes the checking process without altering the overall functionality. --- .../plugins/dynamix.plugin.manager/include/UnraidCheck.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/source/dynamix.unraid.net/usr/local/emhttp/plugins/dynamix.plugin.manager/include/UnraidCheck.php b/plugin/source/dynamix.unraid.net/usr/local/emhttp/plugins/dynamix.plugin.manager/include/UnraidCheck.php index 5464d7254..93a1bbb64 100644 --- a/plugin/source/dynamix.unraid.net/usr/local/emhttp/plugins/dynamix.plugin.manager/include/UnraidCheck.php +++ b/plugin/source/dynamix.unraid.net/usr/local/emhttp/plugins/dynamix.plugin.manager/include/UnraidCheck.php @@ -136,7 +136,7 @@ class UnraidOsCheck break; } - usleep(250000); // Sleep for 0.25 seconds between checks + usleep(150000); // Sleep for 0.15 seconds between checks } if (time() - $startTime >= $timeout) { // if we timeout, use the current value