Fix indentation in recalculate priority to match pintos style, w/ T

This commit is contained in:
sBubshait
2024-10-20 22:28:29 +01:00
parent 44de31c0ff
commit 7f7b1648cd

View File

@@ -405,7 +405,8 @@ thread_recalculate_priority (void)
struct thread *t = thread_current ();
t->priority = t->base_priority;
if (!list_empty (&t->donors_list)) {
if (!list_empty (&t->donors_list))
{
int max_donated_priority =
list_entry (list_max (&t->donors_list, priority_more, NULL),
struct thread, donor_elem)->priority;