After looking into documentation and source code, looks like there is no switch/option to display transferred size in bytes for size less than 1024 bytes.
I believe the following should do it. Please let me know if this can be considered an enhancement and build into future release.
Before:
UnicodeString ProgressMessage = FORMAT(L"%-*s | %10d KiB | %6.1f KiB/s | %-6.6s | %3d%%",
(WidthFileName, FileName,
static_cast<int>(ProgressData.TransferedSize / 1024),
static_cast<float>(ProgressData.CPS()) / 1024,
ProgressData.AsciiTransfer ? L"ascii" : L"binary",
ProgressData.TransferProgress()));
After:
UnicodeString ProgressMessage;
if(ProgressData.TransferedSize < 1024)
{
ProgressMessage = FORMAT(L"%-*s | %10d Byte(s) | %6.1f KiB/s | %-6.6s | %3d%%",
(WidthFileName, FileName,
static_cast<int>(ProgressData.TransferedSize),
static_cast<float>(ProgressData.CPS()) / 1024,
ProgressData.AsciiTransfer ? L"ascii" : L"binary",
ProgressData.TransferProgress()));
}
else
{
ProgressMessage = FORMAT(L"%-*s | %10d KiB | %6.1f KiB/s | %-6.6s | %3d%%",
(WidthFileName, FileName,
static_cast<int>(ProgressData.TransferedSize / 1024),
static_cast<float>(ProgressData.CPS()) / 1024,
ProgressData.AsciiTransfer ? L"ascii" : L"binary",
ProgressData.TransferProgress()));
}