diff --git a/Lidgren.Network/Lidgren.Network b/Lidgren.Network/Lidgren.Network index 73554e606..5fc11c2b2 160000 --- a/Lidgren.Network/Lidgren.Network +++ b/Lidgren.Network/Lidgren.Network @@ -1 +1 @@ -Subproject commit 73554e60616667c1e6f402237e4172756a1085d4 +Subproject commit 5fc11c2b2b3cb1548a07c31e00ce647a4ee13ea5 diff --git a/Robust.Server/BaseServer.cs b/Robust.Server/BaseServer.cs index 54e3b9560..ce5336a77 100644 --- a/Robust.Server/BaseServer.cs +++ b/Robust.Server/BaseServer.cs @@ -94,8 +94,8 @@ namespace Robust.Server private IGameLoop _mainLoop = default!; private TimeSpan _lastTitleUpdate; - private int _lastReceivedBytes; - private int _lastSentBytes; + private long _lastReceivedBytes; + private long _lastSentBytes; private string? _shutdownReason; diff --git a/Robust.Shared/Network/NetManager.cs b/Robust.Shared/Network/NetManager.cs index 0ca930042..9c0a77bb6 100644 --- a/Robust.Shared/Network/NetManager.cs +++ b/Robust.Shared/Network/NetManager.cs @@ -177,10 +177,10 @@ namespace Robust.Shared.Network { get { - var sentPackets = 0; - var sentBytes = 0; - var recvPackets = 0; - var recvBytes = 0; + var sentPackets = 0L; + var sentBytes = 0L; + var recvPackets = 0L; + var recvBytes = 0L; foreach (var peer in _netPeers) { @@ -1155,24 +1155,24 @@ namespace Robust.Shared.Network /// /// Total sent bytes. /// - public readonly int SentBytes; + public readonly long SentBytes; /// /// Total received bytes. /// - public readonly int ReceivedBytes; + public readonly long ReceivedBytes; /// /// Total sent packets. /// - public readonly int SentPackets; + public readonly long SentPackets; /// /// Total received packets. /// - public readonly int ReceivedPackets; + public readonly long ReceivedPackets; - public NetworkStats(int sentBytes, int receivedBytes, int sentPackets, int receivedPackets) + public NetworkStats(long sentBytes, long receivedBytes, long sentPackets, long receivedPackets) { SentBytes = sentBytes; ReceivedBytes = receivedBytes;