Print compression percentage when writing RDC files

This commit is contained in:
baldurk
2020-03-13 12:46:24 +00:00
parent 929bcfc0ce
commit 9f309be350
+3 -2
View File
@@ -1159,8 +1159,9 @@ StreamWriter *RDCFile::WriteSection(const SectionProperties &props)
if(compWriter)
uncompressedLength = compWriter->GetOffset();
RDCLOG("Finishing write to section %u (%s). Compressed from %llu bytes to %llu", type,
name.c_str(), uncompressedLength, compressedLength);
RDCLOG("Finishing write to section %u (%s). Compressed from %llu bytes to %llu (%.2f %%)", type,
name.c_str(), uncompressedLength, compressedLength,
100.0 * (double(compressedLength) / double(uncompressedLength)));
// finish up the properties and add to list of sections
m_CurrentWritingProps.compressedSize = compressedLength;