This commit is contained in:
2020-09-03 01:35:26 +08:00
parent a4dab661c0
commit 51f79359c0
+3 -3
View File
@@ -82,18 +82,18 @@ class ServerInotify extends Process
continue; continue;
} }
$md5 = md5($value); $md5 = md5($value);
$mTime = filectime($value);
if (!isset($this->md5Map[$md5])) { if (!isset($this->md5Map[$md5])) {
if ($isReload) { if ($isReload) {
return $this->reload(); return $this->reload();
} }
$this->md5Map[$md5] = filectime($value); $this->md5Map[$md5] = $mTime;
} else { } else {
$mTime = filectime($value);
if ($this->md5Map[$md5] != $mTime) { if ($this->md5Map[$md5] != $mTime) {
if ($isReload) { if ($isReload) {
return $this->reload(); return $this->reload();
} }
$this->md5Map[$md5] = filectime($value); $this->md5Map[$md5] = $mTime;
} }
} }
} }