Convert `latency` option to a Fixnum (#1928)

As @vill pointed out in https://github.com/middleman/middleman/issues/1866#issuecomment-222869287
passing `--watcher-latency=2` fails because the gem `listen` expects `latency` to be an `Fixnum`.

This commit fixes this issue.
fix/fix-watcher-config
Peter Suschlik 2016-06-01 23:19:13 +02:00 committed by Thomas Reynolds
parent e8f10fe3c2
commit 1581bfc27e
1 changed files with 1 additions and 1 deletions

View File

@ -163,7 +163,7 @@ module Middleman
wait_for_delay: 0.5
}
config[:latency] = @latency if @latency
config[:latency] = @latency.to_i if @latency
@listener = ::Listen.to(@directory.to_s, config, &method(:on_listener_change))