Adjust handling of boolean values in metrics output
Ensure boolean values are converted to integers for consistency.
This commit is contained in:
parent
0fab645ce8
commit
82c988baaa
@ -48,6 +48,8 @@ if($_SERVER["REQUEST_URI"] == '/metrics' || php_sapi_name() == 'cli') {
|
|||||||
} else {
|
} else {
|
||||||
$c['value'] = $output;
|
$c['value'] = $output;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(is_bool($c['value'])) $c['value'] = $c['value'] ? 1 : 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
$loader = new \Twig\Loader\FilesystemLoader('templates');
|
$loader = new \Twig\Loader\FilesystemLoader('templates');
|
||||||
|
Loading…
Reference in New Issue
Block a user