summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDennis Nienhüser <nienhueser@kde.org>2016-07-31 15:35:47 (GMT)
committerDennis Nienhüser <nienhueser@kde.org>2016-07-31 15:35:47 (GMT)
commit513c946f2a61fabe4e57ef6ce5c836fed1511ad9 (patch)
tree0b5ea6687e6a2dbbabd77610056c711d881afb75
parenteada1f585ce2db374e51d27e269ca924075d9c52 (diff)
Reduce progress output frequency
-rw-r--r--tools/mbtile-import/MbTileWriter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/mbtile-import/MbTileWriter.cpp b/tools/mbtile-import/MbTileWriter.cpp
index 4438121..7a0ce0d 100644
--- a/tools/mbtile-import/MbTileWriter.cpp
+++ b/tools/mbtile-import/MbTileWriter.cpp
@@ -80,7 +80,7 @@ void MbTileWriter::addTile(const QFileInfo &file, qint32 x, qint32 y, qint32 z)
}
++m_tileCounter;
- if (m_reportProgress) {
+ if (m_reportProgress && m_tileCounter % 500 == 0) {
std::cout << "Tile " << std::right << std::setw(10) << m_tileCounter << ": ";
std::cout << "Adding " << z << '/' << x << '/' << y << '\r';
std::cout.flush();