Skip to content

Commit

Permalink
Better description for the bandwidth option
Browse files Browse the repository at this point in the history
  • Loading branch information
lowleveldesign committed Mar 16, 2021
1 parent 0650cdc commit 8a3f261
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions ProcessGovernor/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,10 @@ public static int Main(string[] args)
}
}},
{ "e|cpurate=", "The maximum CPU rate in % for the process. If you also set the affinity, " +
"the rate will apply only to the selected CPU cores. (Windows 8.1+)",
"the rate will apply only to the selected CPU cores. (Windows 8.1+)",
v => { procgov.CpuMaxRate = ParseCpuRate(v); } },
{ "bandwidth=", "The maximum bandwidth for outgoing network traffic in bytes for the " +
"process (accepted suffixes: K, M, or G). (Windows 10+)",
{ "bandwidth=", "The maximum bandwidth (in bytes) for the process outgoing network traffic" +
" (accepted suffixes: K, M, or G). (Windows 10+)",
v => { procgov.MaxBandwidth = ParseByteLength(v); } },
{ "r|recursive", "Apply limits to child processes too (will wait for all processes to finish).",
v => { procgov.PropagateOnChildProcesses = v != null; } },
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ Options:
-e, --cpurate=VALUE The maximum CPU rate in % for the process. If
you also set the affinity, the rate will apply
only to the selected CPU cores. (Windows 8.1+)
--bandwidth=VALUE The maximum bandwidth for outgoing network
traffic in bytes for the process (accepted
suffixes: K, M, or G). (Windows 10+)
--bandwidth=VALUE The maximum bandwidth (in bytes) for the process
outgoing network traffic (accepted suffixes: K,
M, or G). (Windows 10+)
-r, --recursive Apply limits to child processes too (will wait
for all processes to finish).
--newconsole Start the process in a new console window.
Expand Down

0 comments on commit 8a3f261

Please sign in to comment.