Skip to content

Commit

Permalink
chore: adjust the default number of workers (#62)
Browse files Browse the repository at this point in the history
  • Loading branch information
chenquan authored Dec 30, 2022
1 parent c775ff8 commit 462f253
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ Flags:
-t, --type strings only count certain types of files (default all)
-u, --unit string displayed units. optional: B(Bytes), K(KB), M(MB), G(GB), T(TB) (default "M")
-v, --version version for diskusage
-w, --worker int number of workers searching the directory (default 5120)
-w, --worker int number of workers searching the directory (default 32)
```

## 👀案例
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ Flags:
-t, --type strings only count certain types of files (default all)
-u, --unit string displayed units. optional: B(Bytes), K(KB), M(MB), G(GB), T(TB) (default "M")
-v, --version version for diskusage
-w, --worker int number of workers searching the directory (default 512)
-w, --worker int number of workers searching the directory (default 32)
```

## 👀example
Expand Down
2 changes: 1 addition & 1 deletion cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,6 @@ func init() {
rootCmd.Flags().StringP("filter", "f", "", "regular expressions are used to filter files")
rootCmd.Flags().BoolP("all", "a", false, "display all directories, otherwise only display folders whose usage size is not 0")
rootCmd.Flags().StringP("color", "c", "auto", "set color output mode. optional: auto, always, ignore")
rootCmd.Flags().IntP("worker", "w", 512, "number of workers searching the directory")
rootCmd.Flags().IntP("worker", "w", 32, "number of workers searching the directory")
rootCmd.Flags().Int64P("limit", "l", math.MaxInt64, "limit the number of files and directories displayed")
}

0 comments on commit 462f253

Please sign in to comment.