mirror of
https://github.com/Llewellynvdm/conky.git
synced 2025-01-16 12:10:31 +00:00
parent
b858d0cc77
commit
c428663e02
@ -1164,7 +1164,7 @@ double get_nvidia_barval(struct text_object *obj) {
|
|||||||
temp2 = get_nvidia_string_value(nvs->target, ATTR_PERFMODES_STRING,
|
temp2 = get_nvidia_string_value(nvs->target, ATTR_PERFMODES_STRING,
|
||||||
(char *)"memTransferRatemax",
|
(char *)"memTransferRatemax",
|
||||||
SEARCH_MAX, nvs->target_id, nvs->arg);
|
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;
|
value = ((float)temp1 * 100 / (float)temp2) + 0.5;
|
||||||
break;
|
break;
|
||||||
case ATTR_IMAGE_QUALITY: // imagequality
|
case ATTR_IMAGE_QUALITY: // imagequality
|
||||||
|
Loading…
Reference in New Issue
Block a user