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:
Alireza |S.N|
2023-04-03 05:13:04 +03:30
committed by GitHub
parent 1dd1fcf016
commit dbc6d6aa9f

View File

@@ -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;
}; };