Websocketd now uses float64 timer.
parent
b3265025cf
commit
e86c09d6cb
|
@ -19,7 +19,7 @@ require "./lib_modifications.cr"
|
||||||
service_name = "websocket"
|
service_name = "websocket"
|
||||||
host = "0.0.0.0"
|
host = "0.0.0.0"
|
||||||
port_to_listen = 1234
|
port_to_listen = 1234
|
||||||
timer_delay = 30.to_i64
|
timer_delay = 30.to_f64
|
||||||
|
|
||||||
verbosity = 1
|
verbosity = 1
|
||||||
|
|
||||||
|
@ -37,7 +37,7 @@ OptionParser.parse do |parser|
|
||||||
end
|
end
|
||||||
|
|
||||||
parser.on "-t timer-delay", "--timer-delay timer-delay", "Timer delay (in seconds)" do |t|
|
parser.on "-t timer-delay", "--timer-delay timer-delay", "Timer delay (in seconds)" do |t|
|
||||||
timer_delay = t.to_i64
|
timer_delay = t.to_f64
|
||||||
end
|
end
|
||||||
|
|
||||||
parser.on "-v verbosity-level", "--verbosity level", "Verbosity." do |opt|
|
parser.on "-v verbosity-level", "--verbosity level", "Verbosity." do |opt|
|
||||||
|
|
Reference in New Issue