Gang Zhuo 8 years ago
parent
commit
4325b7f6f9
1 changed files with 6 additions and 1 deletions
  1. +6
    -1
      shadowsocks-csharp/Controller/Service/AvailabilityStatistics.cs

+ 6
- 1
shadowsocks-csharp/Controller/Service/AvailabilityStatistics.cs View File

@@ -196,7 +196,12 @@ namespace Shadowsocks.Controller
_inboundSpeedRecords.TryGetValue(id, out inboundSpeedRecords); _inboundSpeedRecords.TryGetValue(id, out inboundSpeedRecords);
_outboundSpeedRecords.TryGetValue(id, out outboundSpeedRecords); _outboundSpeedRecords.TryGetValue(id, out outboundSpeedRecords);
_latencyRecords.TryGetValue(id, out latencyRecords); _latencyRecords.TryGetValue(id, out latencyRecords);
records.Add(id, new StatisticsRecord(id, inboundSpeedRecords, outboundSpeedRecords, latencyRecords));
StatisticsRecord record = new StatisticsRecord(id, inboundSpeedRecords, outboundSpeedRecords, latencyRecords);
/* duplicate server identifier */
if (records.ContainsKey(id))
records[id] = record;
else
records.Add(id, record);
} }


if (Config.Ping) if (Config.Ping)


Loading…
Cancel
Save