Fixed missing header size for packets.

This commit is contained in:
ProfMobius committed 2014-03-23 11:09:52 +01:00
1 parent 28d7c68d30
commit e9fbcb0fbc
1 file changed
+2 -2
@@ -14,13 +14,13 @@ public class PacketProfiler implements IProfilerPacket {
@Override
public void addPacketOut(Packet packet) {
if (packet != null)
dataSizeOut += packet.getPacketSize();
dataSizeOut += packet.getPacketSize() + 1;
}
@Override
public void addPacketIn(Packet packet) {
if (packet != null)
dataSizeIn += packet.getPacketSize();
dataSizeIn += packet.getPacketSize() + 1;
}
}