Adjust handling of boolean values in metrics output
Ensure boolean values are converted to integers for consistency.
This commit is contained in:
parent
aea6873ed8
commit
6f26907181
@ -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