Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit9f00ac5

Browse files
committed
Fix latest stat being reported
1 parent1924f58 commit9f00ac5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

‎agent/agent.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1276,6 +1276,9 @@ func (a *agent) startReportingConnectionStats(ctx context.Context) {
12761276

12771277
select {
12781278
casea.connStatsChan<-stats:
1279+
// Only store the latest stat when it's successfully sent!
1280+
// Otherwise, it should be sent again on the next iteration.
1281+
a.latestStat.Store(stats)
12791282
default:
12801283
a.logger.Warn(ctx,"network stat dropped")
12811284
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp