Add thread name for PcapRxStats

PcapTxTtagStats thread name has also been shortened since names beyond 16
chars are truncated.
This commit is contained in:
Srivats P 2023-04-26 12:22:26 +05:30
parent dc6c4963a2
commit b9345463c4
2 changed files with 2 additions and 1 deletions

View File

@ -28,6 +28,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>
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;

View File

@ -28,7 +28,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>
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();