diff --git a/src/common/file.cpp b/src/common/file.cpp index 01b7729d..4013c575 100644 --- a/src/common/file.cpp +++ b/src/common/file.cpp @@ -173,7 +173,7 @@ void HdcFile::TransferSummary(CtxFile *context) (context->fileCnt > 1 ? context->transferDirBegin : context->transferBegin); uint64_t fSize = context->fileCnt > 1 ? context->dirSize : context->indexIO; double fRate = static_cast(fSize) / nMSec; // / /1000 * 1000 = 0 - if (context->indexIO >= context->fileSize) { + if (context->indexIO >= context->fileSize || context->lastErrno == 0) { LogMsg(MSG_OK, "FileTransfer finish, Size:%lld, File count = %d, time:%lldms rate:%.2lfkB/s", fSize, context->fileCnt, nMSec, fRate); } else { diff --git a/src/common/transfer.cpp b/src/common/transfer.cpp index f029b511..4c793944 100644 --- a/src/common/transfer.cpp +++ b/src/common/transfer.cpp @@ -233,7 +233,7 @@ void HdcTransferBase::OnFileIO(uv_fs_t *req) } if (req->result == 0) { context->ioFinish = true; - WRITE_LOG(LOG_INFO, "path:%s fd:%d eof", + WRITE_LOG(LOG_DEBUG, "path:%s fd:%d eof", context->localPath.c_str(), context->fsOpenReq.result); break; }