summaryrefslogtreecommitdiffstats
path: root/web
diff options
context:
space:
mode:
authorjasplin <qt-info@nokia.com>2011-02-16 21:31:26 +0100
committerjasplin <qt-info@nokia.com>2011-02-16 21:31:26 +0100
commit7a6fe7ee8739611bc6ea7fa7be86abc3fd76c591 (patch)
treefba78adb584a97f68db03177ed4b047034b6b05c /web
parent377d36887db522ceee0a4b8866a76517d1d64903 (diff)
Use infinite endpoint for snapshot interval in single time series URL.
The URL that refers to a single time series now specifies an infinite enpoint for the second snapshot (by specifying an invalid SHA-1). Reloading the page is then guaranteed to show the latest available results, This is likely to be more useful in practice.
Diffstat (limited to 'web')
-rw-r--r--web/getstats/tsbmbody.html7
-rw-r--r--web/getstats/tsbmbody.js2
2 files changed, 8 insertions, 1 deletions
diff --git a/web/getstats/tsbmbody.html b/web/getstats/tsbmbody.html
index a4e91e2..69fed8d 100644
--- a/web/getstats/tsbmbody.html
+++ b/web/getstats/tsbmbody.html
@@ -295,6 +295,13 @@
<span style="text-align:left">
<a id="url_tsbm" onclick="return false"
href="javascript::void(0)">URL</a>
+ <script type="text/javascript">
+ setTooltip(
+ $("#url_tsbm"),
+ "Link to page with details for this time series.<br /><br />" +
+ "<b>Note:</b> Reloading that page will reflect the most" +
+ " recent results in the database.")
+ </script>
</span>
</div>
</td>
diff --git a/web/getstats/tsbmbody.js b/web/getstats/tsbmbody.js
index 85354c3..541fcd1 100644
--- a/web/getstats/tsbmbody.js
+++ b/web/getstats/tsbmbody.js
@@ -1225,7 +1225,7 @@ function enableTSBMURL(
query += "&platform=" + encodeURIComponent(platform);
query += "&branch=" + encodeURIComponent(branch);
query += "&sha11=" + sha11;
- query += "&sha12=" + sha12;
+ query += "&sha12=latest"; // invalid SHA-1 specifies infinite endpoint
query += "&benchmark=" + encodeURIComponent(benchmark);
query += "&metric=" + encodeURIComponent(metric);
query += "&difftol=" + difftol;