From b312ee874c34efe664591af68c1b6ae4af1f5255 Mon Sep 17 00:00:00 2001 From: zhouhuang Date: Tue, 31 Dec 2024 13:45:12 +0800 Subject: [PATCH] update --- das-dn/hostadsbf/hostadsbf.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/das-dn/hostadsbf/hostadsbf.cpp b/das-dn/hostadsbf/hostadsbf.cpp index 18590c39..9aef73aa 100644 --- a/das-dn/hostadsbf/hostadsbf.cpp +++ b/das-dn/hostadsbf/hostadsbf.cpp @@ -523,7 +523,7 @@ static void* ryftp_process(void* param) vLog(LOG_DEBUG, "%s get %s to local memory, with name: %s, and password: %s okay, and file length is: %d.\n", processName, remote, user, password, chunk.size); config.units[uid].value &= ~0x02; ftpget_retry_count = 0; - if (chunk.size <= (int)(sizeof(struRYDeviceData) << 5)) { + if (chunk.size <= (int)(sizeof(struRYDeviceData) * 248)) { vLog(LOG_DEBUG, "%s PLC文件生成未完成!\n", processName); continue; } @@ -538,9 +538,8 @@ static void* ryftp_process(void* param) DWORD millisec = unix_time % 1000; unix_time = localtime; unix_time *= 1000; unix_time += millisec; -#if 1 - //if (mbt->GetCurID() == 29) - if (i == 2) +#if 0 + if (unix_time < 1735488000000 || unix_time >= 1735660800000) { unionCP56Time st; st = Time_ttounionCP56Time(localtime);