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:
authorAlex Zolotarev <deathbaba@gmail.com>2011-10-17 19:31:01 +0400
committerAlex Zolotarev <alex@maps.me>2015-09-23 01:26:13 +0300
commit9b2cdcdd618de789e234e6ae66959e27040dbfa2 (patch)
tree081c9afa2bd72bf57ada6fb63b5de80728636b7b /map/benchmark_tool
parent6c7afadd95d4250d37b42756719093acefecd56a (diff)
[benchmark_tool] Exit after displaying scales
Diffstat (limited to 'map/benchmark_tool')
-rw-r--r--map/benchmark_tool/main.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/map/benchmark_tool/main.cpp b/map/benchmark_tool/main.cpp
index bb04669279..d43e3fc20d 100644
--- a/map/benchmark_tool/main.cpp
+++ b/map/benchmark_tool/main.cpp
@@ -14,7 +14,7 @@ DEFINE_string(input, "", "MWM file name in the data directory");
DEFINE_int32(count, 3, "How many times to run benchmark");
DEFINE_int32(lowS, 10, "Low processing scale");
DEFINE_int32(highS, 17, "High processing scale");
-DEFINE_bool(print_scales, false, "Print geometry scales for MWM");
+DEFINE_bool(print_scales, false, "Print geometry scales for MWM and exit");
int main(int argc, char ** argv)
{
@@ -38,9 +38,11 @@ int main(int argc, char ** argv)
feature::DataHeader h;
LoadMapHeader(pl.GetReader(FLAGS_input), h);
+ cout << "Scales with geometry: ";
for (size_t i = 0; i < h.GetScalesCount(); ++i)
cout << h.GetScale(i) << " ";
cout << endl;
+ return 0;
}
if (!FLAGS_input.empty())