  
  void FindSimilarBitsDlg::find() {
    search_btn->setEnabled(false);
    table->clear();
    auto msg_mismatched = calcBits(bus_combo->currentText().toUInt(), bit_combo->currentIndex(), min_msgs->text().toInt());
    table->setRowCount(msg_mismatched.size());
    table->setColumnCount(6);
    table->setHorizontalHeaderLabels({"address", "byte idx", "bit idx", "mismatches", "total", "perc%"});
    for (int i = 0; i < msg_mismatched.size(); ++i) {
      auto &m = msg_mismatched[i];
 
</s> remove   table->setHorizontalHeaderLabels({"address", "byte idx", "bit idx", "mismatches", "total", "perc%"});
 </s> add   table->setHorizontalHeaderLabels({"address", "byte idx", "bit idx", "mismatches", "total msgs", "% mismatched"});
  uint32_t selected_address = msg_cb->currentData().toUInt();
  auto msg_mismatched = calcBits(bus_combo->currentText().toUInt(), selected_address, byte_idx_sb->value(), bit_idx_sb->value(), min_msgs->text().toInt());
  
  void FindSimilarBitsDlg::find() {
    search_btn->setEnabled(false);
    table->clear();
  uint32_t selected_address = msg_cb->currentData().toUInt();
  auto msg_mismatched = calcBits(bus_combo->currentText().toUInt(), selected_address, byte_idx_sb->value(), bit_idx_sb->value(), min_msgs->text().toInt());
    table->setRowCount(msg_mismatched.size());
    table->setColumnCount(6);
    table->setHorizontalHeaderLabels({"address", "byte idx", "bit idx", "mismatches", "total", "perc%"});
    for (int i = 0; i < msg_mismatched.size(); ++i) {
      auto &m = msg_mismatched[i];
keep keep keep keep replace keep keep keep keep keep
 cabana: fix find similar bits (#26918)

* dynamic find bit

* change

* Revert "change"

This reverts commit 12cf513e2725a52ee40b8999521adcd6ecb00221.

* change sorting and headers

* make perc a float

Co-authored-by: Shane Smiskol <shane@smiskol.com> 
tools/cabana/tools/findsimilarbits.cc