Skip to content

Commit

Permalink
Adjust network bytes logging
Browse files Browse the repository at this point in the history
  • Loading branch information
features-not-bugs committed Apr 1, 2023
1 parent 7d45927 commit 71e8182
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/RustServerMetrics/MetricsLogger.cs
Original file line number Diff line number Diff line change
Expand Up @@ -173,8 +173,9 @@ internal void OnNetWriteSend(NetWrite write, SendInfo sendInfo)
}
else if (sendInfo.connections != null)
{
data.count += sendInfo.connections.Count;
data.bytes += write.Position * data.count;
var count = sendInfo.connections.Count;
data.count += count;
data.bytes += write.Position * count;
}
}

Expand Down

0 comments on commit 71e8182

Please sign in to comment.