Implemented basic stats functionality and started setting up menu
This commit is contained in:
+5
-11
@@ -1,16 +1,10 @@
|
||||
use chrono::Duration;
|
||||
|
||||
use crate::network::radarr::DiskSpace;
|
||||
|
||||
#[derive(Default, Debug)]
|
||||
pub struct RadarrData {
|
||||
pub free_space: u64,
|
||||
pub total_space: u64,
|
||||
}
|
||||
|
||||
impl From<&DiskSpace> for RadarrData {
|
||||
fn from(disk_space: &DiskSpace) -> Self {
|
||||
RadarrData {
|
||||
free_space: disk_space.free_space.as_u64().unwrap(),
|
||||
total_space: disk_space.total_space.as_u64().unwrap()
|
||||
}
|
||||
}
|
||||
pub free_space: u64,
|
||||
pub total_space: u64,
|
||||
pub version: String,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user