Updated last good plan index page

This commit is contained in:
Jovan Popovic
2018-06-13 13:04:13 +02:00
parent 26ade07bc1
commit 99ef7aa63a
@@ -82,6 +82,10 @@ SET AUTOMATIC_TUNING ( FORCE_LAST_GOOD_PLAN = ON);</pre>
$.ajax({ $.ajax({
url: "/api/demo", url: "/api/demo",
success: function (result) { success: function (result) {
if (result.y == 0) {
console.log("No response");
return;
}
(perfData.length == 10) && perfData.shift(); (perfData.length == 10) && perfData.shift();
if(result.y>0) if(result.y>0)
perfData.push(result.y); perfData.push(result.y);