mirror of
https://github.com/rustfs/rustfs.git
synced 2026-08-20 11:32:19 +00:00
Fix: fix collect usage data (#500)
Signed-off-by: junxiang Mu <1948535941@qq.com>
This commit is contained in:
@@ -251,6 +251,8 @@ pub struct ScanProgress {
|
||||
/// estimated completion time
|
||||
#[serde(with = "option_system_time_serde")]
|
||||
pub estimated_completion: Option<SystemTime>,
|
||||
/// data usage statistics
|
||||
pub data_usage: Option<DataUsageInfo>,
|
||||
}
|
||||
|
||||
impl Default for ScanProgress {
|
||||
@@ -265,6 +267,7 @@ impl Default for ScanProgress {
|
||||
last_scan_key: None,
|
||||
scan_start_time: SystemTime::now(),
|
||||
estimated_completion: None,
|
||||
data_usage: None,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user