Skip to content

Commit c428663

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

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/nvidia.cc

Lines changed: 1 addition & 1 deletion
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)