Skip to content

Commit 9675d18

Browse files
committed
add explanation of parameters
Signed-off-by: FingerLeader <[email protected]>
1 parent 1cbfc29 commit 9675d18

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
build:
2-
go build main.go -o memStress
2+
go build -o memStress main.go

main.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,9 @@ var (
3434
)
3535

3636
func init() {
37-
flag.StringVar(&memSize, "size", "0KB", "")
38-
flag.StringVar(&growthTime, "time", "0s", "")
39-
flag.IntVar(&workers, "workers", 1, "")
37+
flag.StringVar(&memSize, "size", "0KB", "size of memory you want to allocate")
38+
flag.StringVar(&growthTime, "time", "0s", "time to reach the size of memory you allocated")
39+
flag.IntVar(&workers, "workers", 1, "number of workers allocating memory")
4040
flag.Parse()
4141
}
4242

0 commit comments

Comments
 (0)