Skip to content

Commit 26ffe3d

Browse files
committed
don't access the tuple variable directly when I can use the local copy
1 parent e8ab401 commit 26ffe3d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Intersect.Server.Core/Networking/Client.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,7 @@ public void SendPackets()
341341
continue;
342342
}
343343

344-
var (packet, mode, _) = tuple;
344+
var (packet, mode, packetTime) = tuple;
345345

346346
try
347347
{
@@ -362,7 +362,7 @@ public void SendPackets()
362362
PacketSender.SentPackets++;
363363
PacketSender.SentBytes += packet.Data.Length;
364364
MetricsRoot.Instance.Network.TotalSentPacketProcessingTime.Record(
365-
Timing.Global.Milliseconds - tuple.Item3
365+
Timing.Global.Milliseconds - packetTime
366366
);
367367
}
368368
}

0 commit comments

Comments
 (0)