Adjust handling of boolean values in metrics output

Ensure boolean values are converted to integers for consistency.
This commit is contained in:
Jeroen De Meerleer 2024-06-03 19:48:39 +02:00
parent aea6873ed8
commit 6f26907181
Signed by: JeroenED
GPG Key ID: 28CCCB8F62BFADD6

View File

@ -48,6 +48,8 @@ if($_SERVER["REQUEST_URI"] == '/metrics' || php_sapi_name() == 'cli') {
} else {
$c['value'] = $output;
}
if(is_bool($c['value'])) $c['value'] = $c['value'] ? 1 : 0;
}
$loader = new \Twig\Loader\FilesystemLoader('templates');