diff --git a/htdocs/batch_process.php b/htdocs/batch_process.php index d0c9e5f..b93b390 100644 --- a/htdocs/batch_process.php +++ b/htdocs/batch_process.php @@ -64,5 +64,6 @@ rrmdir(ReportParser::getWorkPath()); if ($nr) { Memc::flush(); - IRCNotify::send("#SingularityViewer", "[CrashProcessor] $nr new reports. http://crash.singularityviewer.org/crashes.php "); + $rp = $nr != 1 ? "reports" : "report"; + IRCNotify::send("#SingularityViewer", "[CrashProcessor] $nr new $rp. http://crash.singularityviewer.org/"); } diff --git a/htdocs/crashes.php b/htdocs/crashes.php index ff40b1b..56ac5b1 100644 --- a/htdocs/crashes.php +++ b/htdocs/crashes.php @@ -90,7 +90,7 @@ $filter->render(); setDialog($link.data("id")); $dialog.dialog("option","position", getPos(e)); $dialog.dialog("option","title", "Crash signature " + signature_id); - $link.delay(300).queue(function() { + $link.delay(1000).queue(function() { if (!$dialog.dialog("isOpen")) { $dialog.dialog("open"); diff --git a/htdocs/lib/CrashReport.php b/htdocs/lib/CrashReport.php index 13cd0d1..44ff0c6 100644 --- a/htdocs/lib/CrashReport.php +++ b/htdocs/lib/CrashReport.php @@ -380,4 +380,27 @@ class CrashReport $this->raw_stacktrace = $stacktrace; $this->parseStackTrace($this->raw_stacktrace); } + + static function getBuildsMap() + { + $ret = array(); + $q = "select * from builds order by chan asc, build_nr desc"; + if (false !== $cached = Memc::getq($q)) return $cached; + + if (!$res = DBH::$db->query($q)) return; + + while ($row = DBH::$db->fetchRow($res)) + { + $build = new stdClass; + DBH::$db->loadFromDbRow($build, $res, $row); + if (!$ret[$build->chan]) + { + $ret[$build->chan] = array(); + } + $ret[$build->chan][$build->version] = $build->hash; + } + + Memc::setq($q, $ret); + return $ret; + } } \ No newline at end of file diff --git a/htdocs/lib/Layout.php b/htdocs/lib/Layout.php index a9cc2c1..09032c0 100644 --- a/htdocs/lib/Layout.php +++ b/htdocs/lib/Layout.php @@ -132,8 +132,8 @@ class Layout - - + +