• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

FFFTPのソースコードです。


Commit MetaInfo

Revisión11e2271450074017b745f121b1a65985b85111f9 (tree)
Tiempo2011-10-13 20:20:03
Autors_kawamoto <s_kawamoto@user...>
Commiters_kawamoto

Log Message

Fix bugs of printing transfer rate.

Cambiar Resumen

Diferencia incremental

Binary files a/FFFTP_Eng_Release/FFFTP.exe and b/FFFTP_Eng_Release/FFFTP.exe differ
Binary files a/Release/FFFTP.exe and b/Release/FFFTP.exe differ
--- a/getput.c
+++ b/getput.c
@@ -2019,7 +2019,10 @@ static void DispDownloadFinishMsg(TRANSPACKET *Pkt, int iRetCode)
20192019 // else if((Pkt->hWndTrans != NULL) && (TimeStart != 0))
20202020 // SetTaskMsg(MSGJPN102, TimeStart, Pkt->ExistSize/TimeStart);
20212021 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]));
20232026 else
20242027 SetTaskMsg(MSGJPN103, Pkt->ExistSize);
20252028 }