Select less data
This commit is contained in:
@@ -76,12 +76,12 @@ class CrashReport
|
||||
}
|
||||
}
|
||||
|
||||
function getReports($filter)
|
||||
function getReports($filter, $fields = "id, reported, client_version, client_channel, os, gpu, grid, region")
|
||||
{
|
||||
global $DB;
|
||||
|
||||
$ret = array();
|
||||
if (!$res = $DB->query("select * from reports " . $filter->getWhere() . kl_str_sql(" order by id desc limit !i offset !i", $filter->limit, $filter->offset)))
|
||||
if (!$res = $DB->query("select $fields from reports " . $filter->getWhere() . kl_str_sql(" order by id desc limit !i offset !i", $filter->limit, $filter->offset)))
|
||||
{
|
||||
return $ret;
|
||||
}
|
||||
@@ -90,7 +90,6 @@ class CrashReport
|
||||
{
|
||||
$r = new CrashReport;
|
||||
$DB->loadFromDbRow($r, $res, $row);
|
||||
$r->parseStackTrace($r->raw_stacktrace);
|
||||
$ret[] = $r;
|
||||
}
|
||||
|
||||
|
||||
@@ -114,7 +114,7 @@ class Layout
|
||||
<link rel="shortcut icon" href="<?php print IMG_ROOT ?>/favicon.ico" type="image/x-icon" />
|
||||
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
|
||||
<script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.10.3/jquery-ui.min.js"></script>
|
||||
<title>Automated Crash Report Processing System</title>
|
||||
<title>Singularity Viewer - Automated Crash Report Processing System</title>
|
||||
|
||||
<script type="text/javascript">
|
||||
//<![CDATA[
|
||||
|
||||
Reference in New Issue
Block a user