Increased prompt reprint delay.

- The client's prompt now delays for twice as long to ensure that an updated prompt is displayed next.
This commit is contained in:
Barra Ó Catháin 2023-03-01 23:14:37 +00:00
parent 8f08265c52
commit 995a177c37
2 changed files with 3 additions and 2 deletions

View File

@ -52,7 +52,7 @@ void * messageSender(void * parameters)
// Repeatedly get input from the user, place it in a userMessage, and send it to the server:
while (!shouldExit)
{
usleep(100000);
usleep(200000);
// Clear the window:
wprintw(window, "\n\n\n");

View File

@ -436,7 +436,8 @@ bool getIndexFromList(list * list, void * data, listDataType type, size_t * inde
return false;
}
for(*index = 0; *index < list->itemCount; *index += 1)
// Search through the list, one-by-one, comparing the list items:
for (*index = 0; *index < list->itemCount; *index += 1)
{
switch (type)
{