From b9345463c4fe8020ac907d289743182538ecd3cc Mon Sep 17 00:00:00 2001 From: Srivats P Date: Wed, 26 Apr 2023 12:22:26 +0530 Subject: [PATCH] Add thread name for PcapRxStats PcapTxTtagStats thread name has also been shortened since names beyond 16 chars are truncated. --- server/pcaprxstats.cpp | 1 + server/pcaptxttagstats.cpp | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/server/pcaprxstats.cpp b/server/pcaprxstats.cpp index ef59459..8f1daf4 100644 --- a/server/pcaprxstats.cpp +++ b/server/pcaprxstats.cpp @@ -28,6 +28,7 @@ along with this program. If not, see PcapRxStats::PcapRxStats(const char *device, StreamStats &portStreamStats, int id) : streamStats_(portStreamStats) { + setObjectName(QString("Rx$:%1").arg(device)); device_ = QString::fromLatin1(device); stop_ = false; state_ = kNotStarted; diff --git a/server/pcaptxttagstats.cpp b/server/pcaptxttagstats.cpp index 2a4c905..4f4ee54 100644 --- a/server/pcaptxttagstats.cpp +++ b/server/pcaptxttagstats.cpp @@ -28,7 +28,7 @@ along with this program. If not, see PcapTxTtagStats::PcapTxTtagStats(const char *device, int id) : portId_(id) { - setObjectName(QString("TxTtagStats:%1").arg(device)); + setObjectName(QString("TxT$:%1").arg(device)); device_ = QString::fromLatin1(device); timing_ = StreamTiming::instance();