CS selection by Load

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

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

Loading…
Cancel
Save