]> git.mxchange.org Git - friendica.git/commitdiff
Some more standards
authorMichael <heluecht@pirati.ca>
Sun, 19 Mar 2017 14:43:24 +0000 (14:43 +0000)
committerMichael <heluecht@pirati.ca>
Sun, 19 Mar 2017 14:43:24 +0000 (14:43 +0000)
include/cron.php
include/poller.php

index 93ea167c3851f1a12885f37b03dfdf26435fc541..ca9b5dff25e9ade75dc9546ec3b1d86bc83b5daf 100644 (file)
@@ -222,7 +222,7 @@ function cron_poll_contacts($argc, $argv) {
                                $contact['priority'] = 2;
                        }
 
-                       if($contact['subhub'] AND in_array($contact['network'], array(NETWORK_DFRN, NETWORK_ZOT, NETWORK_OSTATUS))) {
+                       if ($contact['subhub'] AND in_array($contact['network'], array(NETWORK_DFRN, NETWORK_ZOT, NETWORK_OSTATUS))) {
                                // We should be getting everything via a hub. But just to be sure, let's check once a day.
                                // (You can make this more or less frequent if desired by setting 'pushpoll_frequency' appropriately)
                                // This also lets us update our subscription to the hub, and add or replace hubs in case it
index 3124c40a7a62cdc2fa4cb43d64d465cbb55bcff4..5560b3340e6209fc4ab82c97ecd3619bc9840afc 100644 (file)
@@ -397,8 +397,9 @@ function poller_kill_stale_workers() {
                                        dbesc(datetime_convert()),
                                        intval(PRIORITY_NEGLIGIBLE),
                                        intval($pid["pid"]));
-                       } else
+                       } else {
                                logger("Worker process ".$pid["pid"]." (".implode(" ", $argv).") now runs for ".round($duration)." of ".$max_duration." allowed minutes. That's okay.", LOGGER_DEBUG);
+                       }
                }
        }
 }