CS selection by Load

--HG--
extra : rebase_source : 2bc1207748459d1493fd5e9d3329144d59b7b4c2
pull/8/head
azuisleet 14 years ago
parent c4e3360dc4
commit af0612cfde

@ -298,7 +298,7 @@ namespace DepotDownloader
if ( servers.Length == 0 )
continue;
return servers[ 0 ].StorageServer;
return servers.Aggregate((bestmin, x) => (bestmin == null || (x.Load <= bestmin.Load)) ? x :bestmin).StorageServer;
}
return null;

Loading…
Cancel
Save