implement thread_get_nice
This commit is contained in:
@@ -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. */
|
||||
|
||||
Reference in New Issue
Block a user