mirror of
https://github.com/MatsuriDayo/nekoray.git
synced 2025-12-17 20:44:38 +03:00
Fix sorting empty test results (#489)
Empty test results show up on top but users expect the lowest latency to be at the top. This commit puts empty results at the bottom.
This commit is contained in:
@@ -867,6 +867,7 @@ void MainWindow::refresh_proxy_list_impl(const int &id, NekoRay::GroupSortAction
|
|||||||
}
|
}
|
||||||
auto get_latency_for_sort = [](int id) {
|
auto get_latency_for_sort = [](int id) {
|
||||||
auto i = NekoRay::profileManager->GetProfile(id)->latency;
|
auto i = NekoRay::profileManager->GetProfile(id)->latency;
|
||||||
|
if (i == 0) i = 100000;
|
||||||
if (i < 0) i = 99999;
|
if (i < 0) i = 99999;
|
||||||
return i;
|
return i;
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user