diff --git a/config.json b/config.json index c4817ab..6f9b6c7 100644 --- a/config.json +++ b/config.json @@ -4,5 +4,5 @@ "zipper": "7z", "compression": 0, "Max7zInst": 0, - "zipsegLimit": "2G" + "zipsegLimit": "1.9G" } \ No newline at end of file diff --git a/zip_sequences.py b/zip_sequences.py index f565fe9..dec1208 100644 --- a/zip_sequences.py +++ b/zip_sequences.py @@ -57,7 +57,7 @@ DEFAULT_CONFIG = { "compressionMethod": "LZMA2", # Compression method: LZMA2 (multi-threaded), PPMd (single-threaded), BZip2, Deflate "dailyFormat": "daily_YYMMDD", "Max7zInst": 0, # Maximum concurrent 7z instances (0 = auto-calculate) - "zipsegLimit": "2G", # Max bytes per 7z segment (e.g. "2G", "2GB"); 0 or omit = no segmenting + "zipsegLimit": "1.9G", # Max bytes per 7z segment (e.g. "1.9G"); keep under Git LFS 2GB limit } @@ -176,7 +176,7 @@ def _parse_zipseg_limit(value: str | int | float | None) -> int | None: ZIPSEG_LIMIT_BYTES: int | None = None if ZIPPER_TYPE == "7z": - raw = CONFIG.get("zipsegLimit", "2G") + raw = CONFIG.get("zipsegLimit", "1.9G") ZIPSEG_LIMIT_BYTES = _parse_zipseg_limit(raw) if ZIPSEG_LIMIT_BYTES is not None and ZIPSEG_LIMIT_BYTES < 100 * 1024 * 1024: ZIPSEG_LIMIT_BYTES = 100 * 1024 * 1024 # min 100MB