Skip to content

Commit

Permalink
Add option for maximal number of hosts
Browse files Browse the repository at this point in the history
  • Loading branch information
Acanthostega committed Oct 11, 2013
1 parent 870382c commit ff3d8d7
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions configuration/configuration.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@ type Config struct {

// The maximal percentage of memory to use.
MemoryMax float64

// The maximal number of hosts to use in the list.
HostsMax int
}

// A function to get the data from the command line
Expand Down Expand Up @@ -113,6 +116,12 @@ func ReadConfig() *Config {
"The default time out in second to wait before to say that the host"+
" is disconnected.",
)
flag.IntVar(
&data_config.HostsMax,
"hosts_max",
-1,
"The maximal number of hosts to use to dispatch the commands.",
)
flag.StringVar(
&data_config.LogCommand,
"log_command",
Expand Down

0 comments on commit ff3d8d7

Please sign in to comment.