Skip to content

Commit

Permalink
Merge pull request #17 from jakiro2017/master
Browse files Browse the repository at this point in the history
change renice to all processes with same name
  • Loading branch information
yousefvand authored May 4, 2020
2 parents d10c3ba + 4c04665 commit 455bba5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion snippets/snippets.json
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@
},
"cmd_renice": {
"prefix": "cmd renice",
"body": "sudo renice -n ${1|-20,-15,-10,-5,0,5,10,15,19|} -p `pgrep ${0:process_name}`\n",
"body": "for p in \\$(pidof \"${process_name}\"); do sudo renice -n ${1|-20,-15,-10,-5,0,5,10,15,19|} -p \\$p; done",
"description": "Change running process priority. n: -20 (highest priority) to 19 (lowest priority)"
},
"cmd_success_check": {
Expand Down

0 comments on commit 455bba5

Please sign in to comment.