Skip to content
This repository has been archived by the owner on Dec 20, 2024. It is now read-only.

Commit

Permalink
Merge pull request #413 from ZYecho/fix-typo
Browse files Browse the repository at this point in the history
fix: bindwidth -> bandwidth
  • Loading branch information
lowzj authored Feb 21, 2019
2 parents 92bf197 + 19e3a1d commit 2cbc9dd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions cmd/supernode/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ func setupFlags(cmd *cobra.Command) {
flagSet.IntVar(&cfg.ListenPort, "port", 65001, "ListenPort is the port supernode server listens on")
flagSet.StringVar(&cfg.HomeDir, "home-dir", "", "HomeDir is working directory of supernode")
flagSet.StringVar(&cfg.DownloadPath, "download-path", "downloads", "specifies the path where to store downloaded filed from source address")
flagSet.IntVar(&cfg.SystemReservedBindwidth, "system-bindwidth", 20, "Network rate reserved for system (unit: MB/s)")
flagSet.IntVar(&cfg.MaxBindwidth, "max-bandwidth", 20, "network rate that supernode can use (unit: MB/s)")
flagSet.IntVar(&cfg.SystemReservedBandwidth, "system-bandwidth", 20, "Network rate reserved for system (unit: MB/s)")
flagSet.IntVar(&cfg.MaxBandwidth, "max-bandwidth", 20, "network rate that supernode can use (unit: MB/s)")
flagSet.IntVar(&cfg.SchedulerCorePoolSize, "pool-size", 10, "the core pool size of ScheduledExecutorService")
flagSet.BoolVar(&cfg.EnableProfiler, "profiler", false, "Set if supernode HTTP server setup profiler")
flagSet.BoolVarP(&cfg.Debug, "debug", "D", false, "Switch daemon log level to DEBUG mode")
Expand Down
8 changes: 4 additions & 4 deletions supernode/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,15 +53,15 @@ type Config struct {
// default: 20
LinkLimit int

// SystemReservedBindwidth is the network bandwidth reserved for system software.
// SystemReservedBandwidth is the network bandwidth reserved for system software.
// unit: MB/s
// default: 20
SystemReservedBindwidth int
SystemReservedBandwidth int

// MaxBindwidth is the network bandwidth that supernode can use.
// MaxBandwidth is the network bandwidth that supernode can use.
// unit: MB/s
// default: 200
MaxBindwidth int
MaxBandwidth int

// Whether to enable profiler
// default: true
Expand Down

0 comments on commit 2cbc9dd

Please sign in to comment.