TimerPool fixoutManipulator

git-svn-id: svn://db.shs.com.ru/pip@72 12ceb7fc-bf1f-11e4-8940-5bc7170c53b5
This commit is contained in:
2015-04-07 13:17:05 +00:00
parent ac88ca0e7f
commit 75eb413856
8 changed files with 175 additions and 50 deletions

View File

@@ -1,6 +1,6 @@
#include "pibasetransfer.h"
const uint PIBaseTransfer::signature = 0x54444950;
const uint PIBaseTransfer::signature = 0x54424950;
PIBaseTransfer::PIBaseTransfer(): crc(standardCRC_16()), diag(false) {
header.sig = signature;
@@ -235,7 +235,7 @@ void PIBaseTransfer::buildSession(PIVector<Part> parts) {
bytes_all += parts[i].size;
// fi.size = fi.entry.size;
fi.start = 0;
int rest = parts[i].size - (packet_size - cur_size);
llong rest = parts[i].size - (packet_size - cur_size);
// piCout << i << fi.size << rest << bytes_all;
if (rest <= 0) {
fi.size = parts[i].size;