mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-10 01:25:21 +00:00
Client: fixed error with percentage [#CLICKHOUSE-2].
This commit is contained in:
parent
d9793bf5fe
commit
777adabde7
@ -1073,10 +1073,10 @@ private:
|
||||
std::cerr << DISABLE_LINE_WRAPPING << message.rdbuf();
|
||||
|
||||
/// If the approximate number of rows to process is known, we can display a progress bar and percentage.
|
||||
size_t total_rows_corrected = std::max(progress.rows, progress.total_rows);
|
||||
|
||||
if (total_rows_corrected > 0)
|
||||
if (progress.total_rows > 0)
|
||||
{
|
||||
size_t total_rows_corrected = std::max(progress.rows, progress.total_rows);
|
||||
|
||||
/// To avoid flicker, display progress bar only if .5 seconds have passed since query execution start
|
||||
/// and the query is less than halfway done.
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user