Skip to content

Commit d3f0f84

Browse files
Try to fix github CI failure
1 parent 3d51b47 commit d3f0f84

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -177,18 +177,18 @@ Compression
177177
You can modify the compression algorithm and compression level used during tracing
178178
with the environment variables LAVATUBE_COMPRESSION_TYPE and LAVATUBE_COMPRESSION_LEVEL.
179179

180-
The types are (value zero is reserved for now)
180+
The types are (value zero is reserved for now, density is the default)
181181
1. Density
182182
2. LZ4
183183

184-
For Density, the possible levels are (zero means use default)
184+
For Density, the possible levels are (zero means use default, which is Cheetah)
185185

186186
1. Chameleon
187187
2. Cheetah
188188
3. Lion
189189

190190
For LZ4, higher levels means more compression and slower execution. Zero means
191-
use default.
191+
use the default, which is level one (highest performance, worst compression).
192192

193193
Further reading
194194
===============

src/filewriter.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -209,9 +209,9 @@ void file_writer::serializer()
209209
buffer file_writer::compress_chunk(buffer& uncompressed)
210210
{
211211
const uint64_t header_size = sizeof(uint64_t) * 2;
212-
uint64_t compressed_size;
213-
uint64_t was_written;
214-
uint64_t was_read;
212+
uint64_t compressed_size = 0;
213+
uint64_t was_written = 0;
214+
uint64_t was_read = 0;
215215
if (p__compression_type == LAVATUBE_COMPRESSION_DENSITY)
216216
{
217217
compressed_size = density_compress_safe_size(uncompressed.size()) + header_size;

0 commit comments

Comments
 (0)