Fix StreamTiming TxRxKey
makeKey was incorrect by mistake
This commit is contained in:
parent
8ecbe78ddd
commit
5540253e61
@ -155,8 +155,8 @@ int StreamTiming::processRecords()
|
|||||||
|
|
||||||
count++;
|
count++;
|
||||||
|
|
||||||
qDebug("XXXXX [%u/%u] diff %ld.%ld (%ld.%ld - %ld.%ld)",
|
qDebug("XXXXX [%u/%u/%u] diff %ld.%ld (%ld.%ld - %ld.%ld)",
|
||||||
i.value().portId, i.key(),
|
i.value().portId, guid, i.key() & 0xFF,
|
||||||
diff.tv_sec, diff.tv_nsec,
|
diff.tv_sec, diff.tv_nsec,
|
||||||
rxTime.tv_sec, rxTime.tv_nsec,
|
rxTime.tv_sec, rxTime.tv_nsec,
|
||||||
txTime.tv_sec, txTime.tv_nsec);
|
txTime.tv_sec, txTime.tv_nsec);
|
||||||
|
@ -54,7 +54,7 @@ private:
|
|||||||
int deleteStaleRecords();
|
int deleteStaleRecords();
|
||||||
|
|
||||||
quint32 makeKey(uint guid, uint ttagId) {
|
quint32 makeKey(uint guid, uint ttagId) {
|
||||||
return guid << 24 | (ttagId & 0xFF);
|
return guid << 8 | (ttagId & 0xFF);
|
||||||
}
|
}
|
||||||
|
|
||||||
// XXX: use only time intervals, not absolute time
|
// XXX: use only time intervals, not absolute time
|
||||||
@ -73,7 +73,7 @@ private:
|
|||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
// XXX: TxRxKey = guid (24 bit MSG) + ttagid (8 bit LSB)
|
// XXX: TxRxKey = guid (24 bit MSB) + ttagid (8 bit LSB)
|
||||||
// TODO: encode tx port in in packet and use as part of key
|
// TODO: encode tx port in in packet and use as part of key
|
||||||
typedef quint32 TxRxKey;
|
typedef quint32 TxRxKey;
|
||||||
QHash<TxRxKey, TtagData> txHash_;
|
QHash<TxRxKey, TtagData> txHash_;
|
||||||
|
Loading…
Reference in New Issue
Block a user