From f36c745018fb777203b2804fffcf253a152bad17 Mon Sep 17 00:00:00 2001 From: Marco Bonelli Date: Sat, 6 Jul 2019 21:33:43 +0200 Subject: [PATCH] cpulimit: correct wrong examples. (#3171) --- pages/linux/cpulimit.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pages/linux/cpulimit.md b/pages/linux/cpulimit.md index 2396a5e09..492f83fdf 100644 --- a/pages/linux/cpulimit.md +++ b/pages/linux/cpulimit.md @@ -13,16 +13,16 @@ - Launch a given program and limit it to only use 50% of the CPU: -`cpulimit --limit {{50}} {{program}}` +`cpulimit --limit {{50}} -- {{program arg1 arg2 ...}}` - Launch a program, limit its CPU usage to 50% and run cpulimit in the background: -`cpulimit --limit {{50}} --background {{program}}` +`cpulimit --limit {{50}} --background -- {{program}}` - Kill its process if the program's CPU usage goes over 50%: -`cpulimit --limit 50 --kill {{program}}` +`cpulimit --limit 50 --kill -- {{program}}` - Throttle both it and its child processes so that none go about 25% CPU: -`cpulimit --limit {{25}} --monitor-forks {{program}}` +`cpulimit --limit {{25}} --monitor-forks -- {{program}}`