Skip to content

Commit b7b4727

Browse files
K2GO-554 docs(extract): name the real source of the installed total
The trusted bar gets the bundled rootfs_sizes.csv snapshot, not the live .installed sidecar.
1 parent 93e5466 commit b7b4727

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

‎controller/app/src/main/java/org/appdevforall/k2go/deploy/domain/ExtractProgress.java‎

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,11 @@ public static long etaSeconds(long done, long total, long ratePerSec) {
5151
/**
5252
* K2GO-554: the uncompressed size of a trusted gzip stream, for the single-pass byte bar. The gzip
5353
* ISIZE trailer is that size modulo 2^32, which is exact below 4 GiB but wraps for larger rootfs
54-
* (every full tier). The published installed total ({@code .installed}, the du of the tree) is a
55-
* few percent below the stream size, so it fixes the multiple of 2^32 while ISIZE keeps the exact
56-
* low bits. Returns the published total when ISIZE is unknown, and ISIZE when there is no total.
54+
* (every full tier). The installed total the caller passes (today the bundled rootfs_sizes.csv
55+
* snapshot of the {@code .installed} sidecars, the du of the tree) is a few percent below the
56+
* stream size, so it fixes the multiple of 2^32 while ISIZE keeps the exact low bits. It only has
57+
* to be within about 2 GiB of the real size. Returns the installed total when ISIZE is unknown,
58+
* and ISIZE when there is no total.
5759
*
5860
* @param gzipIsize the ISIZE trailer, or a negative value when unreadable.
5961
* @param publishedTotal the published installed size, or 0 when unknown.

0 commit comments

Comments
 (0)