summaryrefslogtreecommitdiff
path: root/src/cmd/show_gen.rs
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2022-05-10 05:51:39 +0000
committerLars Wirzenius <liw@liw.fi>2022-05-10 05:51:39 +0000
commit9d93e77ed08b086b705f3c6d52e6f936dc337ade (patch)
treeb04294a85b4bcfb540107e39490018e8f42d5a6f /src/cmd/show_gen.rs
parent0b6adba069cd1300079c822b14832d690595cfb4 (diff)
parent4913347201f4d00ccaf959c53357241d5bc3f9e0 (diff)
downloadobnam2-9d93e77ed08b086b705f3c6d52e6f936dc337ade.tar.gz
Merge branch 'liw/integer-test' into 'main'
add tests for storing max integers (change FileId to signed) Closes #188 See merge request obnam/obnam!231
Diffstat (limited to 'src/cmd/show_gen.rs')
-rw-r--r--src/cmd/show_gen.rs5
1 files changed, 3 insertions, 2 deletions
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
}