FFFTPのソースコードです。
Revisión | 11e2271450074017b745f121b1a65985b85111f9 (tree) |
---|---|
Tiempo | 2011-10-13 20:20:03 |
Autor | s_kawamoto <s_kawamoto@user...> |
Commiter | s_kawamoto |
Fix bugs of printing transfer rate.
@@ -2019,7 +2019,10 @@ static void DispDownloadFinishMsg(TRANSPACKET *Pkt, int iRetCode) | ||
2019 | 2019 | // else if((Pkt->hWndTrans != NULL) && (TimeStart != 0)) |
2020 | 2020 | // SetTaskMsg(MSGJPN102, TimeStart, Pkt->ExistSize/TimeStart); |
2021 | 2021 | else if((Pkt->hWndTrans != NULL) && (TimeStart[Pkt->ThreadCount] != 0)) |
2022 | - SetTaskMsg(MSGJPN102, TimeStart[Pkt->ThreadCount], Pkt->ExistSize/TimeStart[Pkt->ThreadCount]); | |
2022 | + // "0 B/S"と表示されるバグを修正 | |
2023 | + // 原因は%dにあたる部分に64ビット値が渡されているため | |
2024 | +// SetTaskMsg(MSGJPN102, TimeStart[Pkt->ThreadCount], Pkt->ExistSize/TimeStart[Pkt->ThreadCount]); | |
2025 | + SetTaskMsg(MSGJPN102, (LONG)TimeStart[Pkt->ThreadCount], (LONG)(Pkt->ExistSize/TimeStart[Pkt->ThreadCount])); | |
2023 | 2026 | else |
2024 | 2027 | SetTaskMsg(MSGJPN103, Pkt->ExistSize); |
2025 | 2028 | } |