Skip to content

Commit

Permalink
Apply Nits
Browse files Browse the repository at this point in the history
  • Loading branch information
sasial-dev committed Aug 17, 2024
1 parent cf3fc32 commit 72ade65
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Components/PacketChart.luau
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ function PacketChart:didMount()
local TotalDecompressedSize = 0
local DecompressedSizes = {}

for i, RemoteCall in RemoteData do
for Index, RemoteCall in RemoteData do
local DecompressedSize = PacketSizeCounter.GetPacketSize({
RunContext = Packet.RunContext,
RemoteType = "RemoteEvent",
Expand All @@ -116,11 +116,11 @@ function PacketChart:didMount()
DecompressedSize -= PacketSizeCounter.ClientToServerOverhead
end

DecompressedSizes[i] = DecompressedSize
DecompressedSizes[Index] = DecompressedSize
TotalDecompressedSize += DecompressedSize
end

for i, RemoteCall in RemoteData do
for Index, RemoteCall in RemoteData do
local RemoteName = RemoteCall.Name

if not ArcData[RemoteName] then
Expand All @@ -130,7 +130,7 @@ function PacketChart:didMount()
}
end

ArcData[RemoteName].Size += DecompressedSizes[i] / TotalDecompressedSize * Packet.Size
ArcData[RemoteName].Size += DecompressedSizes[Index] / TotalDecompressedSize * PacketSize

local PlacementIndex = #ArcData[RemoteName].Data + 1
ArcData[RemoteName].Data[PlacementIndex] = {
Expand Down

0 comments on commit 72ade65

Please sign in to comment.