Title: [176498] trunk/Websites/perf.webkit.org
Revision
176498
Author
rn...@webkit.org
Date
2014-11-21 20:25:19 -0800 (Fri, 21 Nov 2014)

Log Message

Unreviewed. Fixed syntax errors.

* init-database.sql:
* public/api/commits.php:

Modified Paths

Diff

Modified: trunk/Websites/perf.webkit.org/ChangeLog (176497 => 176498)


--- trunk/Websites/perf.webkit.org/ChangeLog	2014-11-22 03:42:26 UTC (rev 176497)
+++ trunk/Websites/perf.webkit.org/ChangeLog	2014-11-22 04:25:19 UTC (rev 176498)
@@ -1,5 +1,12 @@
 2014-11-21  Ryosuke Niwa  <rn...@webkit.org>
 
+        Unreviewed. Fixed syntax errors.
+
+        * init-database.sql:
+        * public/api/commits.php:
+
+2014-11-21  Ryosuke Niwa  <rn...@webkit.org>
+
         The dashboard on new perf monitor should be configurable
         https://bugs.webkit.org/show_bug.cgi?id=138994
 

Modified: trunk/Websites/perf.webkit.org/init-database.sql (176497 => 176498)


--- trunk/Websites/perf.webkit.org/init-database.sql	2014-11-22 03:42:26 UTC (rev 176497)
+++ trunk/Websites/perf.webkit.org/init-database.sql	2014-11-22 04:25:19 UTC (rev 176498)
@@ -139,7 +139,7 @@
     task_metric integer REFERENCES test_metrics NOT NULL,
     task_start_run integer REFERENCES test_runs,
     task_end_run integer REFERENCES test_runs,
-    CONSTRAINT analysis_task_should_be_unique_for_range UNIQUE(task_start_run, task_end_run)
+    CONSTRAINT analysis_task_should_be_unique_for_range UNIQUE(task_start_run, task_end_run),
     CONSTRAINT analysis_task_should_not_be_associated_with_single_run
         CHECK ((task_start_run IS NULL AND task_end_run IS NULL) OR (task_start_run IS NOT NULL AND task_end_run IS NOT NULL)));
 

Modified: trunk/Websites/perf.webkit.org/public/api/commits.php (176497 => 176498)


--- trunk/Websites/perf.webkit.org/public/api/commits.php	2014-11-22 03:42:26 UTC (rev 176497)
+++ trunk/Websites/perf.webkit.org/public/api/commits.php	2014-11-22 04:25:19 UTC (rev 176498)
@@ -66,8 +66,10 @@
     $values = array($repository_id);
 
     if ($first && $second) {
-        $first = commit_from_revision($db, $repository_id, $first)['commit_time'];
-        $second = commit_from_revision($db, $repository_id, $second)['commit_time'];
+        $fitrt_commit = commit_from_revision($db, $repository_id, $first);
+        $second_commit = commit_from_revision($db, $repository_id, $second);
+        $first = $fitrt_commit['commit_time'];
+        $second = $second_commit['commit_time'];
         $in_order = $first < $second;
         array_push($values, $in_order ? $first : $second);
         $statements .= ' AND commit_time >= $' . count($values);
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to