Изменение функции ожидания

This commit is contained in:
justuser-31 2025-02-15 09:40:20 +03:00
parent f0b7a6d61f
commit af01e28798
2 changed files with 2 additions and 1 deletions

BIN
rtracker

Binary file not shown.

View File

@ -5,6 +5,7 @@
#include <stdarg.h> #include <stdarg.h>
#include "c_cross_pack/libs/threads.h" #include "c_cross_pack/libs/threads.h"
#include "c_cross_pack/libs/time.h"
#define CL_RED "\033[1;31m" #define CL_RED "\033[1;31m"
#define CL_YELLOW "\033[1;33m" #define CL_YELLOW "\033[1;33m"
@ -68,7 +69,7 @@ void* loadAnim() {
for (size_t i = 0; i < sizeof(anim)/sizeof(anim[0]); i++) { for (size_t i = 0; i < sizeof(anim)/sizeof(anim[0]); i++) {
printf("\r[%s%c%s] %s", CL_YELLOW, anim[i], CL_NORMAL, comment); printf("\r[%s%c%s] %s", CL_YELLOW, anim[i], CL_NORMAL, comment);
fflush(stdout); fflush(stdout);
usleep(100 * 1000); // 100 ms wait(100);
} }
} }
} }