From 51f79359c0a67bb474e938e71d0ded86d2c235ac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Thu, 3 Sep 2020 01:35:26 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- system/Process/ServerInotify.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/system/Process/ServerInotify.php b/system/Process/ServerInotify.php index 61b474b6..0fd87698 100644 --- a/system/Process/ServerInotify.php +++ b/system/Process/ServerInotify.php @@ -82,18 +82,18 @@ class ServerInotify extends Process continue; } $md5 = md5($value); + $mTime = filectime($value); if (!isset($this->md5Map[$md5])) { if ($isReload) { return $this->reload(); } - $this->md5Map[$md5] = filectime($value); + $this->md5Map[$md5] = $mTime; } else { - $mTime = filectime($value); if ($this->md5Map[$md5] != $mTime) { if ($isReload) { return $this->reload(); } - $this->md5Map[$md5] = filectime($value); + $this->md5Map[$md5] = $mTime; } } }