Ejemplo n.º 1
0
        public string CalcStats()
        {
            var sb = new StringBuilder("KeyValueCount:" + LastCommited.CalcKeyCount() + Environment.NewLine
                                       + "FileCount:" + FileCollection.GetCount() + Environment.NewLine
                                       + "FileGeneration:" + FileCollection.LastFileGeneration + Environment.NewLine);

            foreach (var file in _fileCollection.FileInfos)
            {
                sb.AppendFormat("{0} Size:{1} Type:{2} Gen:{3}{4}", file.Key, FileCollection.GetSize(file.Key),
                                file.Value.FileType, file.Value.Generation, Environment.NewLine);
            }
            return(sb.ToString());
        }