Skip to content

Commit

Permalink
Update nvidia.cc
Browse files Browse the repository at this point in the history
Made a suggested change in logic from issue brndnmtthws#1177
  • Loading branch information
w0j0pl authored Aug 25, 2024
1 parent b858d0c commit b0a5f6a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/nvidia.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b0a5f6a

Please sign in to comment.