fix: add backward compatibility for DiskInfo fields
This commit is contained in:
parent
4196066e57
commit
1cb05d404b
@ -15,7 +15,9 @@ pub struct DiskInfo {
|
|||||||
pub name: String,
|
pub name: String,
|
||||||
pub total: u64,
|
pub total: u64,
|
||||||
pub available: u64,
|
pub available: u64,
|
||||||
|
#[serde(default)]
|
||||||
pub temperature: Option<f32>,
|
pub temperature: Option<f32>,
|
||||||
|
#[serde(default)]
|
||||||
pub is_partition: bool,
|
pub is_partition: bool,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user