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:
1 parent
e13d1ece58
commit
b16a58deae
43 files changed
+426
-536
No files matched your search
+2
-2
@@ -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;
|
||||
|
||||
|
||||
Reference in new issue
Block a user