Skip to content

Commit 71e8182

Browse files
Adjust network bytes logging
1 parent 7d45927 commit 71e8182

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/RustServerMetrics/MetricsLogger.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,8 +173,9 @@ internal void OnNetWriteSend(NetWrite write, SendInfo sendInfo)
173173
}
174174
else if (sendInfo.connections != null)
175175
{
176-
data.count += sendInfo.connections.Count;
177-
data.bytes += write.Position * data.count;
176+
var count = sendInfo.connections.Count;
177+
data.count += count;
178+
data.bytes += write.Position * count;
178179
}
179180
}
180181

0 commit comments

Comments
 (0)