🐛 Fix formatting bug
This commit is contained in:
parent
5cd3293aae
commit
bf21ff61e1
@ -19,7 +19,7 @@ fn index() -> Result<String, Status> {
|
|||||||
let percentage_used = ((used as f64 / total as f64) * 100.0) as u64;
|
let percentage_used = ((used as f64 / total as f64) * 100.0) as u64;
|
||||||
let percentage_available = 100 - percentage_used;
|
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)
|
Err(Status::InternalServerError)
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user