Fix: health status returning ping in incorrect unit

This commit is contained in:
Damodar Lohani 2026-01-01 07:37:09 +00:00
parent 4b3fe0b6fe
commit 19895e54e3
5 changed files with 5 additions and 5 deletions

View file

@ -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;

View file

@ -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;

View file

@ -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;

View file

@ -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);
}
}

View file

@ -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);
}
}