Page MenuHomePhabricator

D14542.diff
No OneTemporary

D14542.diff

diff --git a/src/infrastructure/daemon/overseer/PhabricatorDaemonOverseerModule.php b/src/infrastructure/daemon/overseer/PhabricatorDaemonOverseerModule.php
--- a/src/infrastructure/daemon/overseer/PhabricatorDaemonOverseerModule.php
+++ b/src/infrastructure/daemon/overseer/PhabricatorDaemonOverseerModule.php
@@ -17,7 +17,11 @@
}
public function shouldReloadDaemons() {
- if ($this->timestamp < PhabricatorTime::getNow() - 10) {
+ $now = PhabricatorTime::getNow();
+ $ago = ($now - $this->timestamp);
+
+ // Don't check more than once every 10 seconds.
+ if ($ago < 10) {
return false;
}

File Metadata

Mime Type
text/plain
Expires
Tue, Mar 25, 6:33 PM (1 w, 1 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7705202
Default Alt Text
D14542.diff (628 B)

Event Timeline