add_config: use correct size

We want to store the size of the encoded blob in the index.
This commit is contained in:
Dietmar Maurer 2019-10-02 11:34:57 +02:00
parent df85507d5b
commit 03841f08ba

View File

@ -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),
}));