Update to lzma 23.01.

This commit is contained in:
2023-09-24 03:13:03 +01:00
parent 5a6a32f513
commit dda9bcac54
530 changed files with 31937 additions and 14468 deletions

View File

@@ -63,7 +63,8 @@ void CPercentPrinter::GetPercents()
{
char c = '%';
UInt64 val = 0;
if (Total == (UInt64)(Int64)-1)
if (Total == (UInt64)(Int64)-1 ||
(Total == 0 && Completed != 0))
{
val = Completed >> 20;
c = 'M';
@@ -78,7 +79,7 @@ void CPercentPrinter::GetPercents()
while (size < kPercentsSize)
{
_s += ' ';
_s.Add_Space();
size++;
}
@@ -124,8 +125,8 @@ void CPercentPrinter::Print()
char s[32];
ConvertUInt64ToString(Files, s);
// unsigned size = (unsigned)strlen(s);
// for (; size < 3; size++) _s += ' ';
_s += ' ';
// for (; size < 3; size++) _s.Add_Space();
_s.Add_Space();
_s += s;
// _s += "f";
}
@@ -133,13 +134,13 @@ void CPercentPrinter::Print()
if (!Command.IsEmpty())
{
_s += ' ';
_s.Add_Space();
_s += Command;
}
if (!FileName.IsEmpty() && _s.Len() < MaxLen)
{
_s += ' ';
_s.Add_Space();
_tempU = FileName;
_so->Normalize_UString(_tempU);