aboutsummaryrefslogtreecommitdiff
path: root/src/zenstore
diff options
context:
space:
mode:
authorDan Engelbrecht <[email protected]>2025-10-20 13:37:58 +0200
committerGitHub Enterprise <[email protected]>2025-10-20 13:37:58 +0200
commit6e587f57d8c5cc9d37346bfa49eda174e01a697e (patch)
tree5aff25f3da3be737a8a25448c6cac4e055abd818 /src/zenstore
parentupdated chunking strategy (#589) (diff)
downloadzen-6e587f57d8c5cc9d37346bfa49eda174e01a697e.tar.xz
zen-6e587f57d8c5cc9d37346bfa49eda174e01a697e.zip
fix builds storage stats (#590)
* restructure builds storage stats to match web-ui expectations
Diffstat (limited to 'src/zenstore')
-rw-r--r--src/zenstore/buildstore/buildstore.cpp3
-rw-r--r--src/zenstore/include/zenstore/buildstore/buildstore.h12
2 files changed, 10 insertions, 5 deletions
diff --git a/src/zenstore/buildstore/buildstore.cpp b/src/zenstore/buildstore/buildstore.cpp
index 5c6aa099c..aa28d8900 100644
--- a/src/zenstore/buildstore/buildstore.cpp
+++ b/src/zenstore/buildstore/buildstore.cpp
@@ -580,6 +580,9 @@ BuildStore::GetStorageStats() const
Result.MetadataByteCount += Metadata.GetSize();
}
}
+
+ Result.BlobLogByteCount = m_PayloadlogFile.GetLogSize();
+ Result.MetadataLogByteCount = m_MetadatalogFile.GetLogSize();
}
return Result;
}
diff --git a/src/zenstore/include/zenstore/buildstore/buildstore.h b/src/zenstore/include/zenstore/buildstore/buildstore.h
index 87b7dd812..76cba05b9 100644
--- a/src/zenstore/include/zenstore/buildstore/buildstore.h
+++ b/src/zenstore/include/zenstore/buildstore/buildstore.h
@@ -45,11 +45,13 @@ public:
struct StorageStats
{
- uint64_t EntryCount = 0;
- uint64_t BlobCount = 0;
- uint64_t BlobBytes = 0;
- uint64_t MetadataCount = 0;
- uint64_t MetadataByteCount = 0;
+ uint64_t EntryCount = 0;
+ uint64_t BlobCount = 0;
+ uint64_t BlobBytes = 0;
+ uint64_t MetadataCount = 0;
+ uint64_t MetadataByteCount = 0;
+ uint64_t BlobLogByteCount = 0;
+ uint64_t MetadataLogByteCount = 0;
};
StorageStats GetStorageStats() const;