removed GPU mem info from top bar
This commit is contained in:
parent
eb16de6670
commit
93a40c574e
@ -296,11 +296,7 @@ void MainWindow::updateTemperatures()
|
|||||||
int totalReadings = 0;
|
int totalReadings = 0;
|
||||||
bool needsLegendUpdate = false;
|
bool needsLegendUpdate = false;
|
||||||
|
|
||||||
// GPU memory variables for status bar
|
|
||||||
double gpuMemoryUsedGB = 0.0;
|
|
||||||
double gpuMemoryTotalGB = 0.0;
|
|
||||||
bool hasGpuData = false;
|
|
||||||
|
|
||||||
for (auto &deviceEntry : allTemps) {
|
for (auto &deviceEntry : allTemps) {
|
||||||
const std::string &device = deviceEntry.first;
|
const std::string &device = deviceEntry.first;
|
||||||
const auto &temps = deviceEntry.second;
|
const auto &temps = deviceEntry.second;
|
||||||
@ -462,11 +458,7 @@ void MainWindow::updateTemperatures()
|
|||||||
gtk_label_set_text(GTK_LABEL(tempLabels[memoryLabelSeriesId]), buf);
|
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()
|
<< " | Devices: " << allTemps.size()
|
||||||
<< " | Total readings: " << totalReadings;
|
<< " | 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());
|
gtk_label_set_text(GTK_LABEL(statusLabel), oss.str().c_str());
|
||||||
|
|
||||||
// Update legend ONLY if new sensors were found or legend is empty
|
// Update legend ONLY if new sensors were found or legend is empty
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user