mirror of
https://github.com/mangosfour/server.git
synced 2025-12-26 16:37:06 +00:00
[12066] Optimize some parts for ++C
This commit is contained in:
parent
ba86b02dd4
commit
3707b04330
48 changed files with 163 additions and 163 deletions
|
|
@ -71,7 +71,7 @@ void BarGoLink::init(int row_count)
|
|||
#else
|
||||
printf("[");
|
||||
#endif
|
||||
for (int i = 0; i < indic_len; i++) printf(empty);
|
||||
for (int i = 0; i < indic_len; ++i) printf(empty);
|
||||
#ifdef _WIN32
|
||||
printf("\x3D 0%%\r\x3D");
|
||||
#else
|
||||
|
|
@ -97,8 +97,8 @@ void BarGoLink::step()
|
|||
#else
|
||||
printf("\r[");
|
||||
#endif
|
||||
for (i = 0; i < n; i++) printf(full);
|
||||
for (; i < indic_len; i++) printf(empty);
|
||||
for (i = 0; i < n; ++i) printf(full);
|
||||
for (; i < indic_len; ++i) printf(empty);
|
||||
float percent = (((float)n / (float)indic_len) * 100);
|
||||
#ifdef _WIN32
|
||||
printf("\x3D %i%% \r\x3D", (int)percent);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue