mirror of
https://github.com/aaru-dps/Aaru.Compression.Native.git
synced 2025-12-16 19:24:31 +00:00
Update to lzma 23.01.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user