Skip to content

Commit 6732e9b

Browse files
unkn0wNameunkn0wName
authored andcommitted
fix: cpu process time
1 parent cfc060a commit 6732e9b

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

testRoot/process_cmdline_utils.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,7 @@ static ssize_t wait_and_find_cmdline_process(const char* str_root_key, const cha
107107
if (kernel_root::get_root(str_root_key) != 0) {
108108
return -1000021;
109109
}
110+
setpriority(PRIO_PROCESS, 0, -20);
110111
clock_t start = clock();
111112
while (1) {
112113
sleep(0);

0 commit comments

Comments
 (0)