LCOV - code coverage report | ||||||||||||||||||||||
![]() | ||||||||||||||||||||||
|
||||||||||||||||||||||
![]() |
Line data Source code 1 : use axum::response::Response; 2 : use compute_api::responses::InfoResponse; 3 : use http::StatusCode; 4 : 5 : use crate::http::JsonResponse; 6 : 7 : /// Get information about the physical characteristics about the compute. 8 0 : pub(in crate::http) async fn get_info() -> Response { 9 0 : let num_cpus = num_cpus::get_physical(); 10 0 : JsonResponse::success(StatusCode::OK, &InfoResponse { num_cpus }) 11 0 : } |
![]() |
Generated by: LCOV version 2.1-beta |