mirror of
https://github.com/TwiN/gatus.git
synced 2025-01-03 04:29:13 +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 maxResponseTime = null;
|
||||
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) {
|
||||
minResponseTime = responseTime;
|
||||
}
|
||||
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user