Commit 093ad44f authored by skummer's avatar skummer

ZP-317 #comment when exiting the ChangesSink waitingtime is updated. Consider...

ZP-317 #comment when exiting the ChangesSink waitingtime is updated. Consider as "waited" if time is bigger than 0 seconds #time 15m

git-svn-id: https://z-push.org/svn/z-push/trunk@1562 b7dd7b3b-3a3c-0410-9da9-bee62a6cc5b5
parent b276bacf
......@@ -512,6 +512,7 @@ class SyncCollections implements Iterator {
if ($this->CountChange($folderid)) {
ZLog::Write(LOGLEVEL_DEBUG, sprintf("SyncCollections->CheckForChanges(): Notification received on folder '%s'", $folderid));
$validNotifications = true;
$this->waitingTime = time()-$started;
}
else {
ZLog::Write(LOGLEVEL_DEBUG, sprintf("SyncCollections->CheckForChanges(): Notification received on folder '%s', but it is not relevant", $folderid));
......@@ -632,7 +633,8 @@ class SyncCollections implements Iterator {
* @return array
*/
public function WaitedForChanges() {
return ($this->waitingTime > 1);
ZLog::Write(LOGLEVEL_DEBUG, sprintf("SyncCollections->WaitedForChanges: waited for %d seconds", $this->waitingTime));
return ($this->waitingTime > 0);
}
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment