proxmox-backup-client: use HumanByte to render snapshot size

This commit is contained in:
Dietmar Maurer
2020-10-20 11:43:48 +02:00
parent 6f757b8458
commit 23440482d4
2 changed files with 14 additions and 1 deletions

View File

@ -510,7 +510,7 @@ async fn list_snapshots(param: Value) -> Result<Value, Error> {
.sortby("backup-id", false)
.sortby("backup-time", false)
.column(ColumnConfig::new("backup-id").renderer(render_snapshot_path).header("snapshot"))
.column(ColumnConfig::new("size"))
.column(ColumnConfig::new("size").renderer(tools::format::render_bytes_human_readable))
.column(ColumnConfig::new("files").renderer(render_files))
;