Compare commits
No commits in common. "5c26d60a5808f5e6b81113c2aaf771e667d344dc" and "55ec7995c7249988651ef54d2fe8c4f10598484e" have entirely different histories.
5c26d60a58
...
55ec7995c7
|
@ -36,7 +36,6 @@ public:
|
|||
readCount = 0;
|
||||
clock_gettime(CLOCK_REALTIME, &t0);
|
||||
ta = t0;
|
||||
t1 = t0;
|
||||
|
||||
printf("ReadDataThread for digi-%d running.\n", digi->GetSerialNumber());
|
||||
do{
|
||||
|
@ -71,12 +70,12 @@ public:
|
|||
break;
|
||||
}
|
||||
|
||||
clock_gettime(CLOCK_REALTIME, &t2);
|
||||
if( t2.tv_sec - t1.tv_sec > 1 ){
|
||||
clock_gettime(CLOCK_REALTIME, &t1);
|
||||
if( t1.tv_sec - ta.tv_sec > 2 ){
|
||||
digiMTX[ID].lock();
|
||||
digi->ReadACQStatus();
|
||||
digiMTX[ID].unlock();
|
||||
t2 = t1;
|
||||
ta = t1;
|
||||
}
|
||||
|
||||
if( isSaveData && !stop ) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user