Rename PcapRxStats::id_ as PcapRxStats::portId_

Better code clarity
This commit is contained in:
Srivats P 2023-03-31 16:58:52 +05:30
parent ab713ce043
commit bf749847e0
2 changed files with 4 additions and 4 deletions

View File

@ -35,7 +35,7 @@ PcapRxStats::PcapRxStats(const char *device, StreamStats &portStreamStats, int i
handle_ = NULL;
id_ = id;
portId_ = id;
timing_ = StreamTiming::instance();
}
@ -122,8 +122,8 @@ _skip_filter:
case 1: {
uint ttagId, guid;
if (SignProtocol::packetTtagId(data, hdr->caplen, &ttagId, &guid)) {
timing_->recordRxTime(id_, guid, ttagId, hdr->ts);
qDebug("XXXXX [%d RX] %ld:%ld ttag %u guid %u", id_,
timing_->recordRxTime(portId_, guid, ttagId, hdr->ts);
qDebug("XXXXX [%d RX] %ld:%ld ttag %u guid %u", portId_,
hdr->ts.tv_sec, long(hdr->ts.tv_usec), ttagId, guid);
}
if (guid != SignProtocol::kInvalidGuid) {

View File

@ -50,7 +50,7 @@ private:
volatile State state_;
bool isDirectional_;
int id_; // FIXME: rename to portId_
int portId_;
StreamTiming *timing_{nullptr};
};