Skip to content

Commit

Permalink
Add crypt_metadata_str to output
Browse files Browse the repository at this point in the history
Signed-off-by: mulhern <[email protected]>
  • Loading branch information
mulkieran committed Aug 8, 2024
1 parent e73f7da commit 221ea76
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/bin/utils/predict_usage.rs
Original file line number Diff line number Diff line change
Expand Up @@ -246,8 +246,10 @@ pub fn predict_pool_usage(
let stratis_metadata_str =
Value::String((*((total_size - non_metadata_size).bytes())).to_string());

let crypt_metadata_str = Value::String((*crypt_metadata_size).to_string());

let json = json! {
{"total": total_size_str, "used": used_size_str, "free": avail_size_str, "stratis-admin-space": stratis_admin_str, "stratis-metadata-space": stratis_metadata_str}
{"total": total_size_str, "used": used_size_str, "free": avail_size_str, "stratis-admin-space": stratis_admin_str, "stratis-metadata-space": stratis_metadata_str, "crypt-metadata-space": crypt_metadata_str}
};

println!("{json}");
Expand Down

0 comments on commit 221ea76

Please sign in to comment.