From e93825b9f024f9c5ee43739b10b876c57c80011a Mon Sep 17 00:00:00 2001 From: Michael Date: Sun, 19 Mar 2017 14:43:24 +0000 Subject: [PATCH] Some more standards --- include/cron.php | 2 +- include/poller.php | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/include/cron.php b/include/cron.php index 93ea167c38..ca9b5dff25 100644 --- a/include/cron.php +++ b/include/cron.php @@ -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 diff --git a/include/poller.php b/include/poller.php index 3124c40a7a..5560b3340e 100644 --- a/include/poller.php +++ b/include/poller.php @@ -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); + } } } } -- 2.39.5