mirror of
https://github.com/LBRYFoundation/pool.git
synced 2025-09-21 02:19:47 +00:00
benchs: ignore virtual devices
This commit is contained in:
parent
b2ca40a7fd
commit
a7a562cd48
4 changed files with 15 additions and 1 deletions
|
@ -91,6 +91,9 @@ if ($algo != 'all') {
|
|||
}
|
||||
|
||||
foreach ($in_db as $row) {
|
||||
|
||||
if ($row['chip'] == 'Virtual') continue;
|
||||
|
||||
echo '<tr class="ssrow">';
|
||||
|
||||
echo '<td>'.strtoupper($row['type']).'</td>';
|
||||
|
|
|
@ -76,6 +76,10 @@ echo <<<END
|
|||
END;
|
||||
|
||||
foreach ($in_db as $row) {
|
||||
|
||||
// ignore virtual devices
|
||||
if ($row['chip'] == 'Virtual') continue;
|
||||
|
||||
echo '<tr class="ssrow">';
|
||||
|
||||
$vendorid = $row['vendorid'];
|
||||
|
@ -118,4 +122,4 @@ foreach ($in_db as $row) {
|
|||
echo '</tbody></table><br/>';
|
||||
|
||||
echo '<a href="/site/benchmarks">Learn how to submit your results</a>';
|
||||
echo '<br/><br/>';
|
||||
echo '<br/><br/>';
|
||||
|
|
|
@ -124,6 +124,12 @@ function formatCPU($row)
|
|||
$device = str_replace(' APU with AMD Radeon','', $device);
|
||||
$device = str_replace(' version ',' ', $device);
|
||||
$device = preg_replace('/(HD|R\d) Graphics/','', $device);
|
||||
// VIA Nano processor U2250 (1.6GHz Capable)
|
||||
$device = str_replace(' (1.6GHz Capable)','', $device);
|
||||
if (stristr($device, 'Virtual CPU') || stristr($device, 'QEMU')) {
|
||||
$row['chip'] = 'Virtual';
|
||||
$device = 'Virtual';
|
||||
}
|
||||
return trim($device);
|
||||
}
|
||||
|
||||
|
|
|
@ -127,6 +127,7 @@ END;
|
|||
foreach ($db_rows as $row) {
|
||||
|
||||
if (!isset($row['algo'])) continue;
|
||||
if ($row['chip'] == 'Virtual') continue;
|
||||
|
||||
echo '<tr class="ssrow">';
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue