mirror of
https://github.com/appwrite/appwrite
synced 2026-05-23 08:58:35 +00:00
Fix: health status returning ping in incorrect unit
This commit is contained in:
parent
4b3fe0b6fe
commit
19895e54e3
5 changed files with 5 additions and 5 deletions
|
|
@ -71,7 +71,7 @@ class Get extends Action
|
|||
$output[] = new Document([
|
||||
'name' => $key . " ($cache)",
|
||||
'status' => 'pass',
|
||||
'ping' => \round((\microtime(true) - $checkStart) / 1000),
|
||||
'ping' => \round((\microtime(true) - $checkStart) * 1000),
|
||||
]);
|
||||
} else {
|
||||
$failures[] = $cache;
|
||||
|
|
|
|||
|
|
@ -72,7 +72,7 @@ class Get extends Action
|
|||
$output[] = new Document([
|
||||
'name' => $key . " ($database)",
|
||||
'status' => 'pass',
|
||||
'ping' => \round((\microtime(true) - $checkStart) / 1000),
|
||||
'ping' => \round((\microtime(true) - $checkStart) * 1000),
|
||||
]);
|
||||
} else {
|
||||
$failures[] = $database;
|
||||
|
|
|
|||
|
|
@ -71,7 +71,7 @@ class Get extends Action
|
|||
$output[] = new Document([
|
||||
'name' => $key . " ($pubsub)",
|
||||
'status' => 'pass',
|
||||
'ping' => \round((\microtime(true) - $checkStart) / 1000),
|
||||
'ping' => \round((\microtime(true) - $checkStart) * 1000),
|
||||
]);
|
||||
} else {
|
||||
$failures[] = $pubsub;
|
||||
|
|
|
|||
|
|
@ -76,7 +76,7 @@ class Get extends Action
|
|||
|
||||
$response->dynamic(new Document([
|
||||
'status' => 'pass',
|
||||
'ping' => \round((\microtime(true) - $checkStart) / 1000),
|
||||
'ping' => \round((\microtime(true) - $checkStart) * 1000),
|
||||
]), Response::MODEL_HEALTH_STATUS);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -73,7 +73,7 @@ class Get extends Action
|
|||
|
||||
$response->dynamic(new Document([
|
||||
'status' => 'pass',
|
||||
'ping' => \round((\microtime(true) - $checkStart) / 1000),
|
||||
'ping' => \round((\microtime(true) - $checkStart) * 1000),
|
||||
]), Response::MODEL_HEALTH_STATUS);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue