wangzhengquan
2020-06-13 c6a302283cee53d113d88db89c0a242576dbc8c4
device/hcnetdisk.c
@@ -71,8 +71,8 @@
  port = loginInfo.port;
  startChannel = struDeviceInfo.struDeviceV30.byStartDChan;
  maxChannels = struDeviceInfo.struDeviceV30.byIPChanNum + struDeviceInfo.struDeviceV30.byHighDChanNum * 256;
  deviceInfo.startChannel = struDeviceInfo.struDeviceV30.byStartDChan;
  deviceInfo.maxChannels = struDeviceInfo.struDeviceV30.byIPChanNum + struDeviceInfo.struDeviceV30.byHighDChanNum * 256;
  return 0;
}
@@ -118,11 +118,13 @@
          request.channel, 
          mktime(&start), 
          i);
      // printf("%s\n", destfile);
      // downloadByTime_wrapper(userid, request.channel, &start, &end, destfile);
      if(files != NULL) {
         files->push_back(destfile);
      }
      if(downloadByTime_wrapper(userid, request.channel, &start, &end, destfile) != -1) {
      if(files != NULL) {
        files->push_back(destfile);
      }
    }
      start = end;
      i++;
   }