Skip to content

Commit f643a3a

Browse files
Fix -Wparentheses warning
1 parent d33dbd8 commit f643a3a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/linux/btop_collect.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1784,7 +1784,7 @@ namespace Gpu {
17841784
}
17851785

17861786
//? PCIe link speeds
1787-
if (gpus_slice[i].supported_functions.pcie_txrx and Config::getB("rsmi_measure_pcie_speeds") or is_init) {
1787+
if ((gpus_slice[i].supported_functions.pcie_txrx and Config::getB("rsmi_measure_pcie_speeds")) or is_init) {
17881788
uint64_t tx, rx;
17891789
result = rsmi_dev_pci_throughput_get(i, &tx, &rx, nullptr);
17901790
if (result != RSMI_STATUS_SUCCESS) {

0 commit comments

Comments
 (0)