Re: put command file size
Duplicate post:
https://winscp.net/forum/viewtopic.php?t=11999
https://winscp.net/forum/viewtopic.php?t=11999
Before posting, please read how to report bug or request support effectively.
Bug reports without an attached log file are usually useless.
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()));
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()));
}