svn path=/trunk/boinc/; revision=18987

This commit is contained in:
David Anderson 2009-09-02 15:23:20 +00:00
parent dd2bb6d4ba
commit a412f6d6d1
1 changed files with 1 additions and 1 deletions

View File

@ -233,12 +233,12 @@ function host_nresults($host) {
// format a GPU description string of the form [BOINC|vers][type|model|number|RAM] // format a GPU description string of the form [BOINC|vers][type|model|number|RAM]
// //
function gpu_desc($x) { function gpu_desc($x) {
if (!$x) return "";
// skip BOINC part // skip BOINC part
$y = strstr($x, 'BOINC'); $y = strstr($x, 'BOINC');
if ($y) { if ($y) {
$x = strstr($y, "["); $x = strstr($y, "[");
} }
if (!$x) return "";
$x = substr($x, 1, -1); $x = substr($x, 1, -1);
$y = explode("|", $x); $y = explode("|", $x);
$z = ""; $z = "";