Increase default cost for p2p remotes from 200 to 1000. This makes git-annex prefer transferring data from special remotes when possible.

This commit is contained in:
Joey Hess 2017-01-06 15:23:30 -04:00
parent 5d39fe6589
commit f275caf732
No known key found for this signature in database
GPG key ID: C910D9222512E3C7
2 changed files with 9 additions and 1 deletions

View file

@ -45,7 +45,7 @@ remote = RemoteType {
chainGen :: P2PAddress -> Git.Repo -> UUID -> RemoteConfig -> RemoteGitConfig -> Annex (Maybe Remote)
chainGen addr r u c gc = do
connpool <- mkConnectionPool
cst <- remoteCost gc expensiveRemoteCost
cst <- remoteCost gc veryExpensiveRemoteCost
let this = Remote
{ uuid = u
, cost = cst