mirror of https://github.com/BOINC/boinc.git
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.
This commit is contained in:
parent
ab1085b25f
commit
69176b0650
|
@ -291,7 +291,7 @@ function gpu_desc($x, $detail=true) {
|
||||||
//print_r($d);
|
//print_r($d);
|
||||||
if ($d[0] == "BOINC") continue;
|
if ($d[0] == "BOINC") continue;
|
||||||
if ($d[0] == "vbox") continue;
|
if ($d[0] == "vbox") continue;
|
||||||
if (count($d) < 5) continue;
|
if (count($d) < 4) continue;
|
||||||
if ($str) $str .= "<p>";
|
if ($str) $str .= "<p>";
|
||||||
if ($d[2]!="" && $d[2]!="1") $str .= "[".$d[2]."] ";
|
if ($d[2]!="" && $d[2]!="1") $str .= "[".$d[2]."] ";
|
||||||
if ($d[0] == "CUDA") {
|
if ($d[0] == "CUDA") {
|
||||||
|
|
Loading…
Reference in New Issue