mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
Fix: health status returning ping in incorrect unit
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user