diff options
author | Alex Auvolat <alex@adnab.me> | 2022-11-07 21:12:11 +0100 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2022-11-07 21:12:11 +0100 |
commit | 73a4ca8b1515f95bf7860fc292c12db83d3c6228 (patch) | |
tree | da57568dca4a6fbf4cb812f8dc8d5d9fef92d2b2 /src/garage/cli/structs.rs | |
parent | fd5bc142b553d716c8265d83cff0bb633aa09e6b (diff) | |
download | garage-73a4ca8b1515f95bf7860fc292c12db83d3c6228.tar.gz garage-73a4ca8b1515f95bf7860fc292c12db83d3c6228.zip |
Use bytes as capacity units
Diffstat (limited to 'src/garage/cli/structs.rs')
-rw-r--r-- | src/garage/cli/structs.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/garage/cli/structs.rs b/src/garage/cli/structs.rs index 64798952..49a1f267 100644 --- a/src/garage/cli/structs.rs +++ b/src/garage/cli/structs.rs @@ -114,9 +114,9 @@ pub struct AssignRoleOpt { #[structopt(short = "z", long = "zone")] pub(crate) zone: Option<String>, - /// Capacity (in relative terms) + /// Storage capacity, in bytes (supported suffixes: B, KB, MB, GB, TB, PB) #[structopt(short = "c", long = "capacity")] - pub(crate) capacity: Option<u32>, + pub(crate) capacity: Option<bytesize::ByteSize>, /// Gateway-only node #[structopt(short = "g", long = "gateway")] |