feat(ui): Downloads tab support

This commit is contained in:
Dark-Alex-17 committed 2024-12-02 15:57:48 -07:00
1 parent f338dfcb12
commit f0d8555a8a
7 files changed
+213 -27

No files matched your search

+4
View File
@@ -67,6 +67,10 @@ pub fn convert_to_gb(bytes: i64) -> f64 {
bytes as f64 / 1024f64.powi(3)
}
pub fn convert_f64_to_gb(bytes: f64) -> f64 {
bytes / 1024f64.powi(3)
}
pub fn convert_runtime(runtime: i64) -> (i64, i64) {
let hours = runtime / 60;
let minutes = runtime % 60;