Skip to content

Commit

Permalink
在出现错误的情况下触发丢包记录
Browse files Browse the repository at this point in the history
  • Loading branch information
dawn-lc committed Aug 9, 2024
1 parent 3cacca9 commit 2db3885
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Pings.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@
<NeutralLanguage>zh-CN</NeutralLanguage>
<SignAssembly>False</SignAssembly>
<ErrorReport>none</ErrorReport>
<IlcGenerateMstatFile>true</IlcGenerateMstatFile>
<IlcGenerateDgmlFile>true</IlcGenerateDgmlFile>
</PropertyGroup>

<ItemGroup>
Expand Down
1 change: 1 addition & 0 deletions Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,7 @@ public ICMPTestTask(CancellationTokenSource CTS, string name, string ip, int tim
{
State = IPStatus.Unknown;
Delay = DefaultDelay;
RecentLossRateRecorded?.Invoke(this);
}

UpdateRecentPackets(State);
Expand Down

0 comments on commit 2db3885

Please sign in to comment.