Skip to content

Commit

Permalink
Add mount path
Browse files Browse the repository at this point in the history
  • Loading branch information
fangpenlin committed Jan 6, 2025
1 parent 6b21b21 commit c4fb5ed
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/api/processor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ pub struct File {
pub struct DeviceInfo {
pub version: String,
pub wifi_ip: String,
pub mount_path: String,
#[serde(with = "milliseconds")]
pub local_time: OffsetDateTime,
pub total_volume_size: u64,
Expand Down
1 change: 1 addition & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ async fn run_async(spawner: LocalSpawner) -> Result<(), anyhow::Error> {
// TODO: maybe pass in Rc of wifi instead?
wifi_ip: wifi.get_ip_info().unwrap().ip.to_string(),
local_time: OffsetDateTime::now_utc(),
mount_path: mount_path.to_string(),
total_volume_size,
free_volume_size,
})
Expand Down

0 comments on commit c4fb5ed

Please sign in to comment.