CS selection by Load

--HG--
extra : rebase_source : 2bc1207748459d1493fd5e9d3329144d59b7b4c2
This commit is contained in:
azuisleet committed 2011-06-27 19:43:22 -06:00
1 parent c4e3360dc4
commit af0612cfde
1 file changed
+1 -1
+1 -1
View File
@@ -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;