From dbc6d6aa9f40f1698cb1027a1939414ca3efe842 Mon Sep 17 00:00:00 2001 From: "Alireza |S.N|" Date: Mon, 3 Apr 2023 05:13:04 +0330 Subject: [PATCH] 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. --- ui/mainwindow.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/ui/mainwindow.cpp b/ui/mainwindow.cpp index f9cdd8b..0b4cbb7 100644 --- a/ui/mainwindow.cpp +++ b/ui/mainwindow.cpp @@ -867,6 +867,7 @@ void MainWindow::refresh_proxy_list_impl(const int &id, NekoRay::GroupSortAction } auto get_latency_for_sort = [](int id) { auto i = NekoRay::profileManager->GetProfile(id)->latency; + if (i == 0) i = 100000; if (i < 0) i = 99999; return i; };