From 06fab824e7ee24b909f6e6d02d9f127139a84d55 Mon Sep 17 00:00:00 2001 From: karol-brejna-i Date: Wed, 28 Feb 2018 09:15:49 +0100 Subject: [PATCH] Make UI url links relative --- locust/static/locust.js | 4 ++-- locust/templates/index.html | 34 +++++++++++++++++----------------- 2 files changed, 19 insertions(+), 19 deletions(-) diff --git a/locust/static/locust.js b/locust/static/locust.js index 75473a1c17..7fe8af5442 100644 --- a/locust/static/locust.js +++ b/locust/static/locust.js @@ -123,7 +123,7 @@ var responseTimeChart = new LocustLineChart($(".charts-container"), "Response Ti var usersChart = new LocustLineChart($(".charts-container"), "Number of Users", ["Users"], "users"); function updateStats() { - $.get('/stats/requests', function (report) { + $.get('./stats/requests', function (report) { $("#total_rps").html(Math.round(report.total_rps*100)/100); //$("#fail_ratio").html(Math.round(report.fail_ratio*10000)/100); $("#fail_ratio").html(Math.round(report.fail_ratio*100)); @@ -164,7 +164,7 @@ function updateStats() { updateStats(); function updateExceptions() { - $.get('/exceptions', function (data) { + $.get('./exceptions', function (data) { $('#exceptions tbody').empty(); $('#exceptions tbody').jqoteapp(exceptions_tpl, data.exceptions); setTimeout(updateExceptions, 5000); diff --git a/locust/templates/index.html b/locust/templates/index.html index 70bf3e2f98..f4f1a9cf8e 100644 --- a/locust/templates/index.html +++ b/locust/templates/index.html @@ -2,13 +2,13 @@ Locust - - + +
- +
HOST
@@ -42,8 +42,8 @@
%
@@ -56,7 +56,7 @@

Start new Locust swarm

-
+
@@ -73,7 +73,7 @@

Start new Locust swarm

Change the locust count

- +
@@ -146,9 +146,9 @@

Change the locust count

- Download request statistics CSV
- Download response time distribution CSV
- Download exceptions CSV + Download request statistics CSV
+ Download response time distribution CSV
+ Download exceptions CSV
@@ -207,13 +207,13 @@

Version - - + + + - + - + - - + +