mirror of
https://github.com/boykopovar/AnyPS5.git
synced 2026-10-31 12:35:51 +00:00
fix(web): show batch file and module counts as numbers
The batch summary passed the total file and module counts through the byte formatter, so two apps with 1519 files and 5 modules showed "1.5 KiB files" and "5 B modules". Counts are now printed as numbers, as the per-app list and the single-app summary already do. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
1 parent
a5f13b3fd4
commit
028136ed0f
1 file changed
+2
-1
+2
-1
@@ -67,8 +67,9 @@ function update() {
|
||||
const totalBytes = sum(summaries.map(summary => summary.totalBytes));
|
||||
const modules = sum(summaries.map(summary => summary.modules));
|
||||
const sizeText = value => value === null ? "beyond the supported size range" : bytes(value);
|
||||
const countText = value => value === null ? "beyond the supported range" : value;
|
||||
$("archive-info").textContent = multi
|
||||
? `${selectedInputs.length} apps · ${sizeText(totalFiles)} files · ${sizeText(totalBytes)} expanded · ${sizeText(modules)} modules · ${sizeText(selectedBytes)} ${target} conversion input`
|
||||
? `${selectedInputs.length} apps · ${countText(totalFiles)} files · ${sizeText(totalBytes)} expanded · ${countText(modules)} modules · ${sizeText(selectedBytes)} ${target} conversion input`
|
||||
: `${summaries[0].files} files · ${bytes(summaries[0].totalBytes)} expanded · ${summaries[0].modules} modules · ${bytes(target === "windows" ? summaries[0].windowsSelectedBytes : summaries[0].selectedBytes)} ${target} conversion input` + (summaries[0].root ? ` · Root: ${summaries[0].root}` : "");
|
||||
}
|
||||
$("save-note").textContent = multi ? $("save").value === "memory" ? "Creates one ZIP with each app in its own folder. The complete bundle must fit in the 256 MiB memory-download budget." : "Writes one compressed ZIP containing each app in its own folder, without holding the whole bundle in memory." : $("save").value === "disk" ? "Creates a subfolder with the executable, libs and app0. No ZIP compression. Incomplete output folders are removed after cancellation or failure. Browsers may block DLL and other restricted files; use ZIP for those apps." : $("save").value === "zip" ? "Writes a compressed ZIP directly to disk without holding the whole archive in memory." : "Up to 256 MiB including expanded files and output overhead.";
|
||||
|
||||
Reference in new issue
Block a user