Skip to content

Commit b0a5f6a

Browse files
authored
Update nvidia.cc
Made a suggested change in logic from issue brndnmtthws#1177
1 parent b858d0c commit b0a5f6a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/nvidia.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1164,7 +1164,7 @@ double get_nvidia_barval(struct text_object *obj) {
11641164
temp2 = get_nvidia_string_value(nvs->target, ATTR_PERFMODES_STRING,
11651165
(char *)"memTransferRatemax",
11661166
SEARCH_MAX, nvs->target_id, nvs->arg);
1167-
if (temp2 > temp1) temp1 = temp2; // extra safe here
1167+
if (temp1 > temp2) temp1 = temp2; // extra safe here
11681168
value = ((float)temp1 * 100 / (float)temp2) + 0.5;
11691169
break;
11701170
case ATTR_IMAGE_QUALITY: // imagequality

0 commit comments

Comments
 (0)