From 99ef7aa63a0c695fcffcf92bd623b3468d8dae67 Mon Sep 17 00:00:00 2001 From: Jovan Popovic Date: Wed, 13 Jun 2018 13:03:32 +0200 Subject: [PATCH] Updated last good plan index page --- .../automatic-tuning/force-last-good-plan/wwwroot/index.html | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/samples/features/automatic-tuning/force-last-good-plan/wwwroot/index.html b/samples/features/automatic-tuning/force-last-good-plan/wwwroot/index.html index 1ebc2ca5..98fe684f 100644 --- a/samples/features/automatic-tuning/force-last-good-plan/wwwroot/index.html +++ b/samples/features/automatic-tuning/force-last-good-plan/wwwroot/index.html @@ -82,6 +82,10 @@ SET AUTOMATIC_TUNING ( FORCE_LAST_GOOD_PLAN = ON); $.ajax({ url: "/api/demo", success: function (result) { + if (result.y == 0) { + console.log("No response"); + return; + } (perfData.length == 10) && perfData.shift(); if(result.y>0) perfData.push(result.y);