Changeset View
Changeset View
Standalone View
Standalone View
src/applications/repository/storage/PhabricatorRepository.php
Show First 20 Lines • Show All 1,777 Lines • ▼ Show 20 Lines | if ($last_commit) { | ||||
$longest_wait = phutil_units('6 hours in seconds'); | $longest_wait = phutil_units('6 hours in seconds'); | ||||
$smart_wait = min($smart_wait, $longest_wait); | $smart_wait = min($smart_wait, $longest_wait); | ||||
$smart_wait = max($minimum, $smart_wait); | $smart_wait = max($minimum, $smart_wait); | ||||
} else { | } else { | ||||
$smart_wait = $minimum; | $smart_wait = $minimum; | ||||
} | } | ||||
return $smart_wait; | return (int)$smart_wait; | ||||
} | } | ||||
/** | /** | ||||
* Retrieve the sevice URI for the device hosting this repository. | * Retrieve the sevice URI for the device hosting this repository. | ||||
* | * | ||||
* See @{method:newConduitClient} for a general discussion of interacting | * See @{method:newConduitClient} for a general discussion of interacting | ||||
* with repository services. This method provides lower-level resolution of | * with repository services. This method provides lower-level resolution of | ||||
▲ Show 20 Lines • Show All 635 Lines • Show Last 20 Lines |