getState('bench-algo'); if (empty($algo)) $algo = 'all'; $this->pageTitle = "Benchmarks"; echo '

'; if ($algo == 'all') { echo "Last 50 results"; } else { echo "Last 150 $algo results"; } echo '

'; 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'], textExtraction: { 1: function(node, table, n) { return $(node).attr('data'); }, 5: function(node, table, n) { return $(node).attr('data'); }, 6: function(node, table, n) { return $(node).attr('data'); } }, widgetOptions: { filter_external: '.search', filter_columnFilters: false, filter_childRows : true, filter_ignoreCase: true } }"); $actions = ''; if ($this->admin) { $actions = 'Admin'; } echo << Algo Time Device Arch Vendor ID Hashrate Int Freq Watts Client OS Driver {$actions} END; foreach ($db_rows as $row) { echo ''; $hashrate = Itoa2(1000*round($row['khps'],3),3).'H'; $age = datetoa2($row['time']); echo ''.$row['algo'].''; echo ''.$age.''; echo ''.$row['device'].getProductIdSuffix($row).''; echo ''.formatCudaArch($row['arch']).''; echo ''.$row['vendorid'].''; echo ''.$hashrate.''; echo ''.$row['intensity'].''; echo ''.$row['freq'].''; echo ''.(empty($row['power']) ? '-' : $row['power']).''; echo ''.$row['client'].''; echo ''.$row['os'].''; echo ''.$row['driver'].''; if ($this->admin) { $props = array('style'=>'color: darkred;'); echo ''.CHtml::link("delete", '/bench/del?id='.$row['id'], $props).''; } echo ''; } echo '
';