🐛 Fix formatting bug

This commit is contained in:
andreas.dinauer 2025-11-16 17:34:36 +01:00
parent 5cd3293aae
commit bf21ff61e1

View File

@ -19,7 +19,7 @@ fn index() -> Result<String, Status> {
let percentage_used = ((used as f64 / total as f64) * 100.0) as u64;
let percentage_available = 100 - percentage_used;
return Ok(format!("path:{}\ntotal-space:{}\nused-space:{}\npercentage-used:{}\npercentage-available{}", host_path,total, used, percentage_used, percentage_available))
return Ok(format!("path:{}\ntotal-space:{}\nused-space:{}\npercentage-used:{}\npercentage-available:{}", host_path,total, used, percentage_used, percentage_available))
}
Err(Status::InternalServerError)
}