This commit is contained in:
2020-09-03 01:31:26 +08:00
parent 89c780e59a
commit 1635feb44c
+2
View File
@@ -81,10 +81,12 @@ class ServerInotify extends Process
$this->loadByDir($value);
}
if (!isset($this->md5Map[$md5])) {
$this->debug('not hav ' . $value);
return $this->reload();
}
$mTime = filectime($value);
if ($this->md5Map[$md5] != $mTime) {
$this->debug('not hav ' . $this->md5Map[$md5] . ':' . $mTime);
return $this->reload();
}
$this->md5Map[$md5] = $mTime;