  }
  
  void MainWindow::dockCharts(bool dock) {
    if (dock && floating_window) {
      floating_window->removeEventFilter(charts_widget);
      charts_layout->insertWidget(0, charts_widget, 1);
      floating_window->deleteLater();
 
</s>
void MainWindow::updateStatus() {
  float cached_minutes = 0;
  if (!can->liveStreaming()) {
    if (auto events = can->events(); !events->empty()) {
      cached_minutes = (events->back()->mono_time - events->front()->mono_time) / (1e9 * 60);
    }
  } else {
    settings.max_cached_minutes = settings.max_cached_minutes;
  }
  status_label->setText(tr("Cached Minutes:%1 FPS:%2").arg(cached_minutes, 0, 'f', 1).arg(settings.fps));
}

  }
  
void MainWindow::updateStatus() {
  float cached_minutes = 0;
  if (!can->liveStreaming()) {
    if (auto events = can->events(); !events->empty()) {
      cached_minutes = (events->back()->mono_time - events->front()->mono_time) / (1e9 * 60);
    }
  } else {
    settings.max_cached_minutes = settings.max_cached_minutes;
  }
  status_label->setText(tr("Cached Minutes:%1 FPS:%2").arg(cached_minutes, 0, 'f', 1).arg(settings.fps));
}

  void MainWindow::dockCharts(bool dock) {
    if (dock && floating_window) {
      floating_window->removeEventFilter(charts_widget);
      charts_layout->insertWidget(0, charts_widget, 1);
      floating_window->deleteLater();
keep add keep keep keep keep keep
 cabana: dispaly current FPS & cached minitues on statusbar (#27430)

dispaly current FPS & cached minitues on statusbar
tools/cabana/mainwin.cc