Skip to content

Commit

Permalink
fix parameter name for maximum number of location in distance table p…
Browse files Browse the repository at this point in the history
…lugin
  • Loading branch information
DennisOSRM committed Jan 8, 2015
1 parent 0e5a448 commit b1a1276
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 14 deletions.
6 changes: 3 additions & 3 deletions Util/ProgramOptions.h
Original file line number Diff line number Diff line change
Expand Up @@ -197,12 +197,12 @@ inline unsigned GenerateServerProgramOptions(const int argc,
"threads,t",
boost::program_options::value<int>(&requested_num_threads)->default_value(8),
"Number of threads to use")(
"sharedmemory,s",
"shared-memory,s",
boost::program_options::value<bool>(&use_shared_memory)->implicit_value(true),
"Load data from shared memory")(
"max_locations_distance_table",
"max-table-size,m",
boost::program_options::value<int>(&max_locations_distance_table)->default_value(100),
"Max locations supported in distance table query");
"Max. locations supported in distance table query");

// hidden options, will be allowed both on command line and in config
// file, but will not be shown to the user
Expand Down
18 changes: 9 additions & 9 deletions features/options/routed/help.feature
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ Feature: osrm-routed command line options: help
And stdout should contain "--ip"
And stdout should contain "--port"
And stdout should contain "--threads"
And stdout should contain "--sharedmemory"
And stdout should contain "--max_locations_distance_table"
And stdout should contain 25 lines
And stdout should contain "--shared-memory"
And stdout should contain "--max-table-size"
And stdout should contain 24 lines
And it should exit with code 0

Scenario: osrm-routed - Help, short
Expand All @@ -49,9 +49,9 @@ Feature: osrm-routed command line options: help
And stdout should contain "--ip"
And stdout should contain "--port"
And stdout should contain "--threads"
And stdout should contain "--sharedmemory"
And stdout should contain "--max_locations_distance_table"
And stdout should contain 25 lines
And stdout should contain "--shared-memory"
And stdout should contain "--max-table-size"
And stdout should contain 24 lines
And it should exit with code 0

Scenario: osrm-routed - Help, long
Expand All @@ -74,7 +74,7 @@ Feature: osrm-routed command line options: help
And stdout should contain "--ip"
And stdout should contain "--port"
And stdout should contain "--threads"
And stdout should contain "--sharedmemory"
And stdout should contain "--max_locations_distance_table"
And stdout should contain 25 lines
And stdout should contain "--shared-memory"
And stdout should contain "--max-table-size"
And stdout should contain 24 lines
And it should exit with code 0
4 changes: 2 additions & 2 deletions features/support/launch.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

# Only one isntance of osrm-routed is ever launched, to avoid collisions.
# The default is to keep osrm-routed running and load data with datastore.
# however, osrm-routed it shut down and relaunched for each scenario thats
# however, osrm-routed it shut down and relaunched for each scenario thats
# loads data directly.
class OSRMLoader

Expand Down Expand Up @@ -118,7 +118,7 @@ def load_data

def osrm_up
return if osrm_up?
@@pid = Process.spawn("#{BIN_PATH}/osrm-routed --sharedmemory=1 --port #{OSRM_PORT}",:out=>OSRM_ROUTED_LOG_FILE, :err=>OSRM_ROUTED_LOG_FILE)
@@pid = Process.spawn("#{BIN_PATH}/osrm-routed --shared-memory=1 --port #{OSRM_PORT}",:out=>OSRM_ROUTED_LOG_FILE, :err=>OSRM_ROUTED_LOG_FILE)
Process.detach(@@pid) # avoid zombie processes
end
end
Expand Down

0 comments on commit b1a1276

Please sign in to comment.