Skip to content

Commit 5c903ac

Browse files
committed
Formatted the bytes saved output.
1 parent 5806c22 commit 5c903ac

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

util/SQUISH.LUA

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,9 +142,10 @@ local function Squish(fileName)
142142
end
143143

144144
f:write(data)
145-
f:close()
146145

147-
print(fileName .. ":\t" .. beforeSize .. "->" .. #data)
146+
-- Print the size of the file in bytes before and after the squish
147+
print(string.format("%9d -> %9d:\t %s", beforeSize, f:seek(), fileName))
148+
f:close()
148149
end
149150

150151
if #arg < 1 then

0 commit comments

Comments
 (0)