mirror of
https://github.com/Stone-Red-Code/HyperbolicDownloader.git
synced 2026-09-04 09:06:10 +02:00
Change ordering of hosts
This commit is contained in:
@@ -150,7 +150,10 @@ public class HostsManager
|
||||
|
||||
public void SaveHosts()
|
||||
{
|
||||
hosts = hosts.OrderByDescending(h => h.LastActive).ToList();
|
||||
hosts = hosts
|
||||
.OrderByDescending(s => s.DownloadSpeed)
|
||||
.ThenByDescending(s => s.LastActive)
|
||||
.ToList();
|
||||
File.WriteAllText(ApiConfiguration.HostsFilePath, JsonSerializer.Serialize(hosts));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user