zsh-workers
 help / color / mirror / code / Atom feed
* [PATCH] _powerd: add -M and -m options
@ 2018-05-26  7:08 Eitan Adler
  2018-05-27 19:16 ` Oliver Kiddle
  0 siblings, 1 reply; 4+ messages in thread
From: Eitan Adler @ 2018-05-26  7:08 UTC (permalink / raw)
  To: zsh-workers; +Cc: Eitan Adler

These are specific numeric values. While we can be more careful about
allowed values, limiting to numbers is good enough for now.

Signed-off-by: Eitan Adler <lists@eitanadler.com>
---
 Completion/BSD/Command/_powerd | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/Completion/BSD/Command/_powerd b/Completion/BSD/Command/_powerd
index 18a9fb437..88d7c401b 100644
--- a/Completion/BSD/Command/_powerd
+++ b/Completion/BSD/Command/_powerd
@@ -6,6 +6,8 @@ _arguments -s \
     "-a[mode to use while on AC power]:mode:($powerd_mode)" \
     "-b[mode to use while on battery power]:mode:($powerd_mode)" \
     '-i[CPU idle percent level when begin to degrade performance]:percent:' \
+    "-m[maximum frequency to throttle down to]:freq: :_guard '[0-9]#' 'numeric value'" \
+    "-M[maximum frequency to throttle up to]:freq: :_guard '[0-9]#' 'numeric value'" \
     "-n[mode to use normally when the AC line state is unknown]:mode:($powerd_mode)" \
     '-p[polling interval (in milliseconds) for AC line state and system idle levels]:interval:' \
     '-P[alternative pidfile]:pidfile:_files' \
-- 
2.17.0


^ permalink raw reply	[flat|nested] 4+ messages in thread
* [PATCH] _powerd: add -M and -m options
@ 2018-06-05 22:11 Eitan Adler
  0 siblings, 0 replies; 4+ messages in thread
From: Eitan Adler @ 2018-06-05 22:11 UTC (permalink / raw)
  To: zsh-workers; +Cc: Eitan Adler

These are specific numeric values. While we can be more careful about
allowed values, limiting to numbers is good enough for now.

Signed-off-by: Eitan Adler <lists@eitanadler.com>
---
 Completion/BSD/Command/_powerd | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/Completion/BSD/Command/_powerd b/Completion/BSD/Command/_powerd
index 18a9fb437..05c03ab15 100644
--- a/Completion/BSD/Command/_powerd
+++ b/Completion/BSD/Command/_powerd
@@ -6,6 +6,8 @@ _arguments -s \
     "-a[mode to use while on AC power]:mode:($powerd_mode)" \
     "-b[mode to use while on battery power]:mode:($powerd_mode)" \
     '-i[CPU idle percent level when begin to degrade performance]:percent:' \
+    '-m[minimum frequency to throttle down to]:frequency (MHz)' \
+    '-M[maximum frequency to throttle up to]:frequency (MHz)' \
     "-n[mode to use normally when the AC line state is unknown]:mode:($powerd_mode)" \
     '-p[polling interval (in milliseconds) for AC line state and system idle levels]:interval:' \
     '-P[alternative pidfile]:pidfile:_files' \
-- 
2.17.1


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2018-06-05 23:21 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-05-26  7:08 [PATCH] _powerd: add -M and -m options Eitan Adler
2018-05-27 19:16 ` Oliver Kiddle
2018-06-05 23:13   ` Eitan Adler
2018-06-05 22:11 Eitan Adler

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).