diff --git a/frontend/src/components/Service/AdvancedChart.vue b/frontend/src/components/Service/AdvancedChart.vue index 2a340c9a..a1b7da50 100644 --- a/frontend/src/components/Service/AdvancedChart.vue +++ b/frontend/src/components/Service/AdvancedChart.vue @@ -131,9 +131,9 @@ const dt = new Date(ts).toLocaleDateString("en-us", timeoptions) let val = series[seriesIndex][dataPointIndex]; if (val >= 1000) { - val = (val * 0.1).toFixed(0) + " milliseconds" + val = (val / 1000).toFixed(0) + " milliseconds" } else { - val = (val * 0.01).toFixed(0) + " microseconds" + val = (val).toFixed(0) + " microseconds" } return `
Response Time: ${val}${dt}
` }, diff --git a/frontend/src/components/Service/ServiceSparkLine.vue b/frontend/src/components/Service/ServiceSparkLine.vue index 980e8b4f..712c6656 100644 --- a/frontend/src/components/Service/ServiceSparkLine.vue +++ b/frontend/src/components/Service/ServiceSparkLine.vue @@ -56,9 +56,9 @@ const dt = new Date(ts).toLocaleDateString("en-us", timeoptions) let val = series[seriesIndex][dataPointIndex]; if (val >= 1000) { - val = (val * 0.1).toFixed(0) + " milliseconds" + val = (val / 1000).toFixed(0) + " milliseconds" } else { - val = (val * 0.01).toFixed(0) + " microseconds" + val = (val).toFixed(0) + " microseconds" } return `
Average Response Time: ${val}${dt}
` }, diff --git a/frontend/src/mixin.js b/frontend/src/mixin.js index 74dc8552..54c0c440 100644 --- a/frontend/src/mixin.js +++ b/frontend/src/mixin.js @@ -166,10 +166,10 @@ export default Vue.mixin({ return {data: newSet} }, humanTime(val) { - if (val >= 10000) { - return Math.floor(val / 10000) + "ms" + if (val >= 1000) { + return Math.floor(val / 1000) + "ms" } - return Math.floor(val / 1000) + "μs" + return Math.floor(val) + "μs" }, firstDayOfMonth(date) { return startOfMonth(date) diff --git a/frontend/src/pages/Service.vue b/frontend/src/pages/Service.vue index c32f2aa8..72ad7aba 100644 --- a/frontend/src/pages/Service.vue +++ b/frontend/src/pages/Service.vue @@ -270,9 +270,9 @@ export default { const dt = new Date(ts).toLocaleDateString("en-us", timeoptions) let val = series[seriesIndex][dataPointIndex]; if (val >= 1000) { - val = (val * 0.1).toFixed(0) + " milliseconds" + val = (val / 1000).toFixed(0) + " milliseconds" } else { - val = (val * 0.01).toFixed(0) + " microseconds" + val = (val).toFixed(0) + " microseconds" } return `
Response Time: ${val}${dt}
` },