This commit is contained in:
zhouhuang 2024-12-31 13:45:12 +08:00
parent 4af5795cb9
commit b312ee874c

View File

@ -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);