diff options
Diffstat (limited to 'src/cmd')
-rw-r--r-- | src/cmd/restore.rs | 2 | ||||
-rw-r--r-- | src/cmd/show_gen.rs | 5 |
2 files changed, 4 insertions, 3 deletions
diff --git a/src/cmd/restore.rs b/src/cmd/restore.rs index 4a637da..223d481 100644 --- a/src/cmd/restore.rs +++ b/src/cmd/restore.rs @@ -297,7 +297,7 @@ fn path_to_cstring(path: &Path) -> CString { fn create_progress_bar(file_count: FileId, verbose: bool) -> ProgressBar { let progress = if verbose { - ProgressBar::new(file_count) + ProgressBar::new(file_count as u64) } else { ProgressBar::hidden() }; diff --git a/src/cmd/show_gen.rs b/src/cmd/show_gen.rs index 98c57fc..f47a07b 100644 --- a/src/cmd/show_gen.rs +++ b/src/cmd/show_gen.rs @@ -3,6 +3,7 @@ use crate::chunk::ClientTrust; use crate::client::BackupClient; use crate::config::ClientConfig; +use crate::db::DbInt; use crate::error::ObnamError; use crate::fsentry::FilesystemKind; use crate::generation::GenId; @@ -66,7 +67,7 @@ impl ShowGeneration { #[derive(Debug, Default, Serialize)] struct Output { generation_id: String, - file_count: u64, + file_count: DbInt, file_bytes: String, file_bytes_raw: u64, db_bytes: String, @@ -81,7 +82,7 @@ impl Output { } } - fn file_count(mut self, n: u64) -> Self { + fn file_count(mut self, n: DbInt) -> Self { self.file_count = n; self } |