mirror of
https://gitea.blesmrt.net/mikaela/scripts.git
synced 2024-11-15 23:59:25 +01:00
bash/usr-local-bin/briar: replace cpulimit with systemd-run
This commit is contained in:
parent
e492be76c4
commit
51ec4b71c5
@ -1,4 +1,6 @@
|
||||
#!/usr/bin/env bash
|
||||
set -x
|
||||
cpulimit --lazy --include-children --limit=30 flatpak run org.briarproject.Briar//stable "$@"
|
||||
# Fedora-only, Debian uses a different CPU limit implementation!
|
||||
#cpulimit --lazy --include-children --limit=30 flatpak run org.briarproject.Briar//stable "$@"
|
||||
systemd-run --scope -p CPUQuota="30%" --user flatpak run org.briarproject.Briar//stable "$@"
|
||||
set +x
|
||||
|
Loading…
Reference in New Issue
Block a user