From 69176b0650249c79219c990fedd9c0233e25973a Mon Sep 17 00:00:00 2001 From: David Anderson Date: Tue, 23 Jul 2024 12:44:46 -0700 Subject: [PATCH] web: fix bug that hid GPUs in host page The PHP code (gpu_desc()) skipped GPUs with < 5 description fields. Older clients return only 4 fields. --- html/inc/host.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/html/inc/host.inc b/html/inc/host.inc index 3348901f5a3..72ee0d10969 100644 --- a/html/inc/host.inc +++ b/html/inc/host.inc @@ -291,7 +291,7 @@ function gpu_desc($x, $detail=true) { //print_r($d); if ($d[0] == "BOINC") continue; if ($d[0] == "vbox") continue; - if (count($d) < 5) continue; + if (count($d) < 4) continue; if ($str) $str .= "

"; if ($d[2]!="" && $d[2]!="1") $str .= "[".$d[2]."] "; if ($d[0] == "CUDA") {