Skip to content

Commit

Permalink
Bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
2dust committed Jul 5, 2024
1 parent 5efb784 commit 160d384
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion v2rayN/v2rayN/Handler/DownloadHandle.cs
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ public async Task<int> GetRealPingTime(string url, IWebProxy? webProxy, int down
});
await client.GetAsync(url, cts.Token);

responseTime = timer.Elapsed.Milliseconds;
responseTime = (int)timer.Elapsed.TotalMilliseconds;
}
catch //(Exception ex)
{
Expand Down
2 changes: 1 addition & 1 deletion v2rayN/v2rayN/Handler/SpeedtestHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,7 @@ private int GetTcpingTime(string url, int port)
clientSocket.EndConnect(result);

timer.Stop();
responseTime = timer.Elapsed.Milliseconds;
responseTime = (int)timer.Elapsed.TotalMilliseconds;
}
catch (Exception ex)
{
Expand Down

0 comments on commit 160d384

Please sign in to comment.