Make the UI more "responsive"
This commit is contained in:
parent
2b2c71ee3c
commit
64fc9d95a3
5
src/ui.c
5
src/ui.c
|
@ -50,7 +50,8 @@ _system_stats_thread(void *data, Ecore_Thread *thread)
|
|||
system_stats_all_get(results);
|
||||
ecore_thread_feedback(thread, results);
|
||||
|
||||
for (i = 0; i < ui->poll_delay * 2; i++)
|
||||
// Let's wait 3/4 of a second before updating.
|
||||
for (i = 0; i < 3; i++)
|
||||
{
|
||||
if (ecore_thread_check(thread))
|
||||
return;
|
||||
|
@ -61,7 +62,7 @@ _system_stats_thread(void *data, Ecore_Thread *thread)
|
|||
break;
|
||||
}
|
||||
|
||||
usleep(500000);
|
||||
usleep(250000);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue