mirror of
https://github.com/Stone-Red-Code/HyperbolicDownloader.git
synced 2026-09-09 07:46:26 +02:00
Change ordering of hosts
This commit is contained in:
@@ -150,7 +150,10 @@ public class HostsManager
|
|||||||
|
|
||||||
public void SaveHosts()
|
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));
|
File.WriteAllText(ApiConfiguration.HostsFilePath, JsonSerializer.Serialize(hosts));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user