mirror of
https://github.com/SteamRE/DepotDownloader.git
synced 2026-10-20 01:46:17 +00:00
CS selection by Load
--HG-- extra : rebase_source : 2bc1207748459d1493fd5e9d3329144d59b7b4c2
This commit is contained in:
1 parent
c4e3360dc4
commit
af0612cfde
1 file changed
+1
-1
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user