From ab66551c06f77e2679089b878f3fabf70d7e06aa Mon Sep 17 00:00:00 2001 From: EDiasAlberto Date: Tue, 15 Oct 2024 19:21:15 +0100 Subject: [PATCH] implement thread_get_nice --- src/threads/thread.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/threads/thread.c b/src/threads/thread.c index 30ca2bd..82aa317 100644 --- a/src/threads/thread.c +++ b/src/threads/thread.c @@ -375,8 +375,7 @@ thread_set_nice (int nice UNUSED) int thread_get_nice (void) { - /* Not yet implemented. */ - return 0; + return thread_current ()->nice; } /* Returns 100 times the system load average. */