gpu mem in percentage

This commit is contained in:
Radek Davidek 2026-03-13 17:30:27 +01:00
parent 3dcab02947
commit eb16de6670

View File

@ -789,7 +789,11 @@ void TemperatureChart::showTooltip(double x, double y, const NearestPoint &point
}
char tooltipText[512];
const char *unit = (dataType == DataType::CPU_LOAD) ? "%" : "°C";
// Determine unit based on data type, but GPU Memory always uses %
const char *unit = "%";
if (dataType == DataType::TEMPERATURE && point.seriesId != "GPU - Memory") {
unit = "°C";
}
snprintf(tooltipText, sizeof(tooltipText),
"%s\nAktualni: %.1f%s\nMinimum: %.1f%s\nMaximum: %.1f%s\nPrumer: %.1f%s\n%s",
point.seriesName.c_str(),