mirror of
https://github.com/mangosfour/server.git
synced 2025-12-18 01:37:01 +00:00
[10983] Config option for disable progress bar show at server startup.
Make happy nervouse ppl by some secs startup speedup.
This commit is contained in:
parent
b89e531fee
commit
ea930108da
5 changed files with 41 additions and 15 deletions
|
|
@ -20,6 +20,8 @@
|
|||
|
||||
#include "ProgressBar.h"
|
||||
|
||||
bool barGoLink::m_showOutput = true;
|
||||
|
||||
char const* const barGoLink::empty = " ";
|
||||
#ifdef _WIN32
|
||||
char const* const barGoLink::full = "\x3D";
|
||||
|
|
@ -29,16 +31,23 @@ char const* const barGoLink::full = "*";
|
|||
|
||||
barGoLink::~barGoLink()
|
||||
{
|
||||
if (!m_showOutput)
|
||||
return;
|
||||
|
||||
printf( "\n" );
|
||||
fflush(stdout);
|
||||
}
|
||||
|
||||
barGoLink::barGoLink( int row_count )
|
||||
barGoLink::barGoLink(int row_count)
|
||||
{
|
||||
rec_no = 0;
|
||||
rec_pos = 0;
|
||||
indic_len = 50;
|
||||
num_rec = row_count;
|
||||
|
||||
if (!m_showOutput)
|
||||
return;
|
||||
|
||||
#ifdef _WIN32
|
||||
printf( "\x3D" );
|
||||
#else
|
||||
|
|
@ -53,8 +62,11 @@ barGoLink::barGoLink( int row_count )
|
|||
fflush(stdout);
|
||||
}
|
||||
|
||||
void barGoLink::step( void )
|
||||
void barGoLink::step()
|
||||
{
|
||||
if (!m_showOutput)
|
||||
return;
|
||||
|
||||
int i, n;
|
||||
|
||||
if ( num_rec == 0 ) return;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue