Skip to content

Commit e0eb73b

Browse files
committedNov 3, 2024
Code clean
1 parent 258e822 commit e0eb73b

File tree

7 files changed

+7
-7
lines changed

7 files changed

+7
-7
lines changed
 

‎v2rayN/ServiceLib/Global.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public class Global
4646
public const string ClashMixinYaml = NamespaceSample + "clash_mixin_yaml";
4747
public const string ClashTunYaml = NamespaceSample + "clash_tun_yaml";
4848
public const string LinuxAutostartConfig = NamespaceSample + "linux_autostart_config";
49-
49+
5050
public const string DefaultSecurity = "auto";
5151
public const string DefaultNetwork = "tcp";
5252
public const string TcpHeaderHttp = "http";

‎v2rayN/ServiceLib/Handler/AutoStartupHandler.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ public static void AutoStartTaskService(string taskName, string fileName, string
7575
{
7676
return;
7777
}
78-
78+
7979
var logonUser = WindowsIdentity.GetCurrent().Name;
8080
using var taskService = new Microsoft.Win32.TaskScheduler.TaskService();
8181
var tasks = taskService.RootFolder.GetTasks(new Regex(taskName));

‎v2rayN/ServiceLib/Handler/ConfigHandler.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1197,7 +1197,7 @@ private static async Task<int> AddBatchServers4Custom(Config config, string strD
11971197
{
11981198
await RemoveServerViaSubid(config, subid, isSub);
11991199
}
1200-
1200+
12011201
profileItem.Subid = subid;
12021202
profileItem.IsSub = isSub;
12031203
profileItem.PreSocksPort = preSocksPort;

‎v2rayN/ServiceLib/Services/SpeedtestService.cs

+2-1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
using System.Diagnostics;
33
using System.Net;
44
using System.Net.Sockets;
5+
56
namespace ServiceLib.Services
67
{
78
public class SpeedtestService
@@ -85,7 +86,7 @@ public SpeedtestService(Config config, List<ProfileItem> selecteds, ESpeedAction
8586

8687
private void ExitLoop(string x)
8788
{
88-
if(_exitLoop) return;
89+
if (_exitLoop) return;
8990
_exitLoop = true;
9091
UpdateFunc("", ResUI.SpeedtestingStop);
9192
}

‎v2rayN/ServiceLib/ViewModels/MainWindowViewModel.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ public void SetStatisticsResult(ServerSpeedItem update)
273273
try
274274
{
275275
Locator.Current.GetService<StatusBarViewModel>()?.UpdateStatistics(update);
276-
if ((update.ProxyUp + update.ProxyDown) > 0 && DateTime.Now.Second % 3 == 0)
276+
if ((update.ProxyUp + update.ProxyDown) > 0 && DateTime.Now.Second % 9 == 0)
277277
{
278278
Locator.Current.GetService<ProfilesViewModel>()?.UpdateStatistics(update);
279279
}

‎v2rayN/ServiceLib/ViewModels/ProfilesViewModel.cs

-1
Original file line numberDiff line numberDiff line change
@@ -686,7 +686,6 @@ public async Task ServerSpeedtest(ESpeedActionType actionType)
686686
//ClearTestResult();
687687

688688
_ = new SpeedtestService(_config, lstSelecteds, actionType, UpdateSpeedtestHandler);
689-
690689
}
691690

692691
public void ServerSpeedtestStop()

‎v2rayN/v2rayN.Desktop/Views/OptionSettingWindow.axaml.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ private async Task<bool> UpdateViewHandler(EViewAction action, object? obj)
174174
{
175175
switch (action)
176176
{
177-
case EViewAction.CloseWindow:
177+
case EViewAction.CloseWindow:
178178
this.Close(true);
179179
break;
180180

0 commit comments

Comments
 (0)
Please sign in to comment.