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 15:08:30 +02:00
parent 0fab645ce8
commit 82c988baaa
No known key found for this signature in database
GPG Key ID: 3B23D1B3498D7641

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');