use first_byte_took only for response time
This commit is contained in:
1 parent
db3255d9c6
commit
7dd5573f01
1 file changed
+1
-8
@@ -30,14 +30,7 @@ class DistributedUptimeController {
|
|||||||
} = result;
|
} = result;
|
||||||
|
|
||||||
// Calculate response time
|
// Calculate response time
|
||||||
const responseTime =
|
const responseTime = first_byte_took / 1_000_000;
|
||||||
(first_byte_took +
|
|
||||||
body_read_took +
|
|
||||||
dns_took +
|
|
||||||
conn_took +
|
|
||||||
connect_took +
|
|
||||||
tls_took) /
|
|
||||||
1_000_000;
|
|
||||||
|
|
||||||
// Calculate if server is up or down
|
// Calculate if server is up or down
|
||||||
const isErrorStatus = status_code >= 400;
|
const isErrorStatus = status_code >= 400;
|
||||||
|
|||||||
Reference in new issue
Block a user