From df2a319201c085b15c5475f99bd0169b0c61c5d6 Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Sat, 27 Aug 2011 10:39:21 -0400 Subject: [PATCH] Enhancement - The 'stats' command now includes the new data files in the 'data size' calculation. --- src/commands/CmdStatistics.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/commands/CmdStatistics.cpp b/src/commands/CmdStatistics.cpp index 736a3ebe4..c4fc06dd5 100644 --- a/src/commands/CmdStatistics.cpp +++ b/src/commands/CmdStatistics.cpp @@ -72,6 +72,12 @@ int CmdStatistics::execute (std::string& output) File undo (location._data + "/undo.data"); dataSize += undo.size (); + File backlog (location._data + "/backlog.data"); + dataSize += backlog.size (); + + File synch_key (location._data + "/synch_key.data"); + dataSize += synch_key.size (); + std::vector undoTxns; File::read (undo, undoTxns); int undoCount = 0;