mirror of
https://github.com/TwiN/gatus.git
synced 2025-01-05 05:29:47 +01:00
Fix small issue with min/max response times getting floored instead of rounded
This commit is contained in:
parent
52ad4ee9e5
commit
16229592a2
@ -53,7 +53,7 @@ export default {
|
|||||||
let minResponseTime = null;
|
let minResponseTime = null;
|
||||||
let maxResponseTime = null;
|
let maxResponseTime = null;
|
||||||
for (let i in this.data.results) {
|
for (let i in this.data.results) {
|
||||||
const responseTime = parseInt(this.data.results[i].duration/1000000);
|
const responseTime = (this.data.results[i].duration/1000000).toFixed(0);
|
||||||
if (minResponseTime == null || minResponseTime > responseTime) {
|
if (minResponseTime == null || minResponseTime > responseTime) {
|
||||||
minResponseTime = responseTime;
|
minResponseTime = responseTime;
|
||||||
}
|
}
|
||||||
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user