1
0
mirror of https://github.com/Llewellynvdm/conky.git synced 2025-01-16 04:02:15 +00:00

Update nvidia.cc

Made a suggested change in logic from issue #1177
This commit is contained in:
w0j0pl 2024-08-25 14:49:51 +02:00 committed by Brenden Matthews
parent b858d0cc77
commit c428663e02

View File

@ -1164,7 +1164,7 @@ double get_nvidia_barval(struct text_object *obj) {
temp2 = get_nvidia_string_value(nvs->target, ATTR_PERFMODES_STRING,
(char *)"memTransferRatemax",
SEARCH_MAX, nvs->target_id, nvs->arg);
if (temp2 > temp1) temp1 = temp2; // extra safe here
if (temp1 > temp2) temp1 = temp2; // extra safe here
value = ((float)temp1 * 100 / (float)temp2) + 0.5;
break;
case ATTR_IMAGE_QUALITY: // imagequality