Skip to content

Instantly share code, notes, and snippets.

@patrickwyler
Last active May 4, 2021 12:27
Show Gist options
  • Select an option

  • Save patrickwyler/95e2269c3eab3dca6047b25c320827c8 to your computer and use it in GitHub Desktop.

Select an option

Save patrickwyler/95e2269c3eab3dca6047b25c320827c8 to your computer and use it in GitHub Desktop.
Workaround for MS Teams Helper using up >100% of CPU MacBook
#!/bin/bash
#
# See: https://answers.microsoft.com/en-us/msteams/forum/msteams_other/ms-teams-helper-using-up-100-of-cpu-macbook/9305b96e-5381-43cf-88c4-d3ba39b37a58?page=11
my_array=( $(pgrep -f "Microsoft Teams Helper \(Renderer\)") )
for i in "${my_array[@]}"; do
renice -n 10 -p $i
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment