Skip to content

Commit c4fb5ed

Browse files
committed
Add mount path
1 parent 6b21b21 commit c4fb5ed

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/api/processor.rs

+1
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ pub struct File {
3737
pub struct DeviceInfo {
3838
pub version: String,
3939
pub wifi_ip: String,
40+
pub mount_path: String,
4041
#[serde(with = "milliseconds")]
4142
pub local_time: OffsetDateTime,
4243
pub total_volume_size: u64,

src/main.rs

+1
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ async fn run_async(spawner: LocalSpawner) -> Result<(), anyhow::Error> {
6868
// TODO: maybe pass in Rc of wifi instead?
6969
wifi_ip: wifi.get_ip_info().unwrap().ip.to_string(),
7070
local_time: OffsetDateTime::now_utc(),
71+
mount_path: mount_path.to_string(),
7172
total_volume_size,
7273
free_volume_size,
7374
})

0 commit comments

Comments
 (0)