From 03841f08ba353228f89dabf1ade76ec22b232a1c Mon Sep 17 00:00:00 2001 From: Dietmar Maurer Date: Wed, 2 Oct 2019 11:34:57 +0200 Subject: [PATCH] add_config: use correct size We want to store the size of the encoded blob in the index. --- src/commands.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/commands.rs b/src/commands.rs index 4dc3da2..af8d079 100644 --- a/src/commands.rs +++ b/src/commands.rs @@ -119,7 +119,7 @@ pub(crate) async fn add_config( let mut guard = registry.lock().unwrap(); guard.file_list.push(json!({ "filename": blob_name, - "size": size, + "size": stats.size, "csum": proxmox::tools::digest_to_hex(&stats.csum), }));