getState('bench-algo'); if (empty($algo)) $algo = 'all'; $this->pageTitle = "Benchmarks"; if($algo != 'all') $db_rows = getdbolist('db_benchmarks', "algo=:algo ORDER BY time DESC LIMIT 50", array(':algo'=>$algo)); else $db_rows = getdbolist('db_benchmarks', "1 ORDER BY time DESC LIMIT 150"); showTableSorter('maintable', "{ tableClass: 'dataGrid', widgets: ['zebra','filter'], widgetOptions: { filter_external: '.search', filter_columnFilters: false, filter_childRows : true, filter_ignoreCase: true } }"); echo << Algo Type Device Hashrate Int Freq Power Client OS Driver END; foreach ($db_rows as $row) { echo ''; echo ''.$row['algo'].''; echo ''.$row['type'].''; echo ''.$row['device'].''; echo ''.round($row['khps'],3).''; echo ''.$row['intensity'].''; echo ''.$row['freq'].''; echo ''.(empty($row['power']) ? '-' : $row['power']).''; echo ''.$row['client'].''; echo ''.$row['os'].''; echo ''.$row['driver'].''; echo ''; } echo '
';