Updated Ratatui, created custom deserialization logic for i64s to make life easier, and used string interpolation where possible to reduce the lines needed to write log messages or create formatted text

This commit is contained in:
2023-09-07 17:20:38 -06:00
parent e13d1ece58
commit b16a58deae
43 changed files with 426 additions and 536 deletions
+2 -2
View File
@@ -27,11 +27,11 @@ pub fn init_logging_config() -> log4rs::Config {
.unwrap()
}
pub fn convert_to_gb(bytes: u64) -> f64 {
pub fn convert_to_gb(bytes: i64) -> f64 {
bytes as f64 / 1024f64.powi(3)
}
pub fn convert_runtime(runtime: u64) -> (u64, u64) {
pub fn convert_runtime(runtime: i64) -> (i64, i64) {
let hours = runtime / 60;
let minutes = runtime % 60;