Skip to content

Commit

Permalink
change gc example
Browse files Browse the repository at this point in the history
  • Loading branch information
marvin-j97 committed Sep 20, 2024
1 parent bf5d0f5 commit 32eb6b2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions examples/gc-simple/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@ fn main() -> fjall::Result<()> {
let freed_bytes = blobs.gc_with_space_amp_target(1.0)?;

eprintln!("GC done in {:?}, freed {freed_bytes}B", start.elapsed());
assert_eq!(
freed_bytes,
assert!(
// TODO: needs to be fixed in value-log
/* NOTE: freed_bytes is the amount of bytes freed on disk, not uncompressed data */
9 * 55
freed_bytes > 0
);

let report = blobs.gc_scan()?;
Expand Down

0 comments on commit 32eb6b2

Please sign in to comment.