Fix a bug in computing the size of a segment that led to utilization > 1.0.
[cumulus.git] / store.h
diff --git a/store.h b/store.h
index 956a1b5..d447031 100644 (file)
--- a/store.h
+++ b/store.h
@@ -115,6 +115,7 @@ private:
         Tarfile *file;
         std::string name;           // UUID
         int count;                  // Objects written to this segment
+        int size;                   // Combined size of objects written
         std::string basename;       // Name of segment without directory
         std::string fullname;       // Full path to stored segment
     };