Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--generator/statistics.cpp13
1 files changed, 12 insertions, 1 deletions
diff --git a/generator/statistics.cpp b/generator/statistics.cpp
index ba386c5e2e..2af867fe7d 100644
--- a/generator/statistics.cpp
+++ b/generator/statistics.cpp
@@ -9,6 +9,7 @@
#include "../base/string_utils.hpp"
#include "../std/iostream.hpp"
+#include "../std/iomanip.hpp"
#include "../base/start_mem_debug.hpp"
@@ -36,7 +37,17 @@ namespace stats
tags.push_back(SEARCH_INDEX_FILE_TAG);
for (size_t i = 0; i < tags.size(); ++i)
- cout << tags[i] << " : " << cont.GetReader(tags[i]).Size() << endl;
+ {
+ cout << setw(7) << tags[i] << " : ";
+ try
+ {
+ cout << cont.GetReader(tags[i]).Size() << endl;
+ }
+ catch (Reader::Exception const &)
+ {
+ cout << '-' << endl;
+ }
+ }
}
class AccumulateStatistic