record free bytes in tar archive

This commit is contained in:
Hannes Mehnert 2024-10-31 17:45:34 +01:00
parent f40083692a
commit 53af2665fa

View file

@ -729,8 +729,11 @@ stamp: %S
- list of current downloads - list of current downloads
- list of failed downloads - list of failed downloads
*) *)
let hashes = SM.cardinal disk.Disk.md5s in let archive_stats =
let archive_stats = Printf.sprintf "%u validated archives on disk" hashes in Fmt.str "<ul><li>%u validated archives on disk</li><li>%Lu bytes free</li></ul>"
(SM.cardinal disk.Disk.md5s)
(KV.free disk.Disk.dev)
in
let active_downloads = let active_downloads =
let header = "<h2>Active downloads</h2><ul>" in let header = "<h2>Active downloads</h2><ul>" in
let content = let content =