commit:     ac9ef0ae25fb4c814c4a2016ba48173ca67e947d
Author:     Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
AuthorDate: Mon Feb 23 22:47:55 2015 +0000
Commit:     Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
CommitDate: Mon Feb 23 22:47:55 2015 +0000
URL:        http://sources.gentoo.org/gitweb/?p=proj/ag.git;a=commit;h=ac9ef0ae

Ensure job count is an integer.

Signed-off-by: Robin H. Johnson <robbat2 <AT> gentoo.org>

---
 ag | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ag b/ag
index 027ca23..6574dca 100755
--- a/ag
+++ b/ag
@@ -96,7 +96,7 @@ op = OptionParser.new do |opts|
   end
 
   opts.on('--jobs JOBS', 'Number of parallel jobs to run (defaults to 75% of 
core count)') do |jobs|
-    $options.jobs = jobs
+    $options.jobs = jobs.to_i
   end
 end
 op.parse!

Reply via email to