Commit ea7ba240 authored by dmorley's avatar dmorley

timeout slower

parent 9b687381
Pipeline #3510 failed with stage
in 45 seconds
......@@ -108,7 +108,7 @@ foreach ($pods as $pod) {
$user_rating = round(array_sum($user_ratings) / count($user_ratings), 2);
}
$nodeinfo_meta = curl("https://{$domain}/.well-known/nodeinfo", false, 5);
$nodeinfo_meta = curl("https://{$domain}/.well-known/nodeinfo", false, 25);
// Default link to fetch node info.
$nodeinfo_url = "https://{$domain}/nodeinfo/1.0";
......@@ -125,7 +125,7 @@ foreach ($pods as $pod) {
debug('Nodeinfo link', $nodeinfo_url);
$nodeinfo = curl($nodeinfo_url, false, 5);
$nodeinfo = curl($nodeinfo_url, false, 25);
$outputssl = $nodeinfo['body'];
$outputsslerror = $nodeinfo['error'];
$info = $nodeinfo['info'];
......@@ -257,8 +257,8 @@ foreach ($pods as $pod) {
$score -= 2;
$updategap = date_diff(new DateTime($lastdatechecked), new DateTime($releasedate))->format('%a');
$podminhelp = 'Your code base seems too out of date to be used. Current version is ' . $masterversion . ' and you are running ' . $shortversion;
} elseif ($updategap - date_diff(new DateTime($releasedate), new DateTime())->format('%a') > 200) {
debug('Outdated more than 200 days since x ', 'Yes');
} elseif ($updategap - date_diff(new DateTime($releasedate), new DateTime())->format('%a') > 365) {
debug('Outdated more than 365 days since x ', 'Yes');
$score -= 2;
$updategap = date_diff(new DateTime($lastdatechecked), new DateTime($releasedate))->format('%a');
......
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