Qt: Remove our idle dissection wait period.

Set our idle dissection single-shot timer to 0, i.e. whenever the Qt
event loop can fit us in. This fixes a performance issue here with
libsinsp and doesn't appear to cause any issues otherwise.
This commit is contained in:
Gerald Combs 2022-06-16 18:59:01 -07:00
parent 5db7ddb209
commit 79310ebbd2
1 changed files with 1 additions and 1 deletions

View File

@ -699,7 +699,7 @@ void PacketListModel::dissectIdle(bool reset)
}
if (idle_dissection_row_ < physical_rows_.count()) {
QTimer::singleShot(idle_dissection_interval_, this, SLOT(dissectIdle()));
QTimer::singleShot(0, this, SLOT(dissectIdle()));
} else {
idle_dissection_timer_->invalidate();
}