diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index 3535549..0f63bc4 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -296,11 +296,7 @@ void MainWindow::updateTemperatures() int totalReadings = 0; bool needsLegendUpdate = false; - // GPU memory variables for status bar - double gpuMemoryUsedGB = 0.0; - double gpuMemoryTotalGB = 0.0; - bool hasGpuData = false; - + for (auto &deviceEntry : allTemps) { const std::string &device = deviceEntry.first; const auto &temps = deviceEntry.second; @@ -462,11 +458,7 @@ void MainWindow::updateTemperatures() gtk_label_set_text(GTK_LABEL(tempLabels[memoryLabelSeriesId]), buf); } - // Store GPU memory for status bar (convert to GB) - gpuMemoryUsedGB = gpuStats.memoryUsedMB / 1024.0; - gpuMemoryTotalGB = gpuStats.memoryTotalMB / 1024.0; - hasGpuData = true; - } + } } } @@ -478,12 +470,6 @@ void MainWindow::updateTemperatures() << " | Devices: " << allTemps.size() << " | Total readings: " << totalReadings; - // Add GPU memory to status bar if available - if (hasGpuData) { - oss << " | GPU Memory: " << std::fixed << std::setprecision(1) - << gpuMemoryUsedGB << " / " << gpuMemoryTotalGB << " GB"; - } - gtk_label_set_text(GTK_LABEL(statusLabel), oss.str().c_str()); // Update legend ONLY if new sensors were found or legend is empty