lib/cryptum/option.rb in cryptum-0.0.244 vs lib/cryptum/option.rb in cryptum-0.0.245

- old
+ new

@@ -55,11 +55,11 @@ options.on( '-tSECONDS', '--time-between-orders=SECONDS', '<Optional - Seconds Between Market Trend Reset (Default 60)>' - ) { |t| option_choice.market_trend_reset = t } + ) { |t| option_choice.market_trend_reset = t.to_i } end.parse! input_validation(option_choice: option_choice) option_choice @@ -87,10 +87,10 @@ unless Dir.exist?(option_choice.repo_root) usage = true reason = :repo_root end - option_choice.market_trend_reset = 60 if option_choice.market_trend_reset.to_i.zero? + option_choice.market_trend_reset = 86_400 if option_choice.market_trend_reset.zero? unless option_choice.market_trend_reset.to_f.positive? usage = true reason = :market_trend_reset end