From 48a35d552be53f1460778a691812d1cb59a90a0d Mon Sep 17 00:00:00 2001 From: Damir Ainullin Date: Sat, 16 Mar 2019 01:12:17 +0300 Subject: [PATCH] Use id instead of calculating server.Identifier() --- shadowsocks-csharp/Controller/Strategy/StatisticsStrategy.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shadowsocks-csharp/Controller/Strategy/StatisticsStrategy.cs b/shadowsocks-csharp/Controller/Strategy/StatisticsStrategy.cs index 8e15f4bc..f6493904 100644 --- a/shadowsocks-csharp/Controller/Strategy/StatisticsStrategy.cs +++ b/shadowsocks-csharp/Controller/Strategy/StatisticsStrategy.cs @@ -89,7 +89,7 @@ namespace Shadowsocks.Controller.Strategy var serversWithStatistics = (from server in servers let id = server.Identifier() where _filteredStatistics.ContainsKey(id) - let score = GetScore(server.Identifier(), _filteredStatistics[server.Identifier()]) + let score = GetScore(id, _filteredStatistics[id]) where score != null select new {