From c428663e0214f9bf27d9c6552b6994db6b25cd75 Mon Sep 17 00:00:00 2001 From: w0j0pl <75681054+w0j0pl@users.noreply.github.com> Date: Sun, 25 Aug 2024 14:49:51 +0200 Subject: [PATCH] Update nvidia.cc Made a suggested change in logic from issue #1177 --- src/nvidia.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nvidia.cc b/src/nvidia.cc index a1f1ea318..a7993c97c 100644 --- a/src/nvidia.cc +++ b/src/nvidia.cc @@ -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