Skip to content

Commit

Permalink
Modify txt
Browse files Browse the repository at this point in the history
  • Loading branch information
vikyd committed Aug 30, 2018
1 parent 7f16324 commit e623bc8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ go-cpu-load -p 30 -t 10
```

- `all CPU load` = (num of para `c` _ num of `p`) / (all cores count of CPU _ 100)
- may not only specify cores run the load, it just promise the `all CPU load`
- may not specify cores run the load only, it just promise the `all CPU load`, and not promise each cores run the same load

# Parameters

Expand Down
10 changes: 5 additions & 5 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ import (
// EINVAL Error Code: #define EINVAL 22 /* Invalid argument */
const EINVAL = 23

const MaxInt32 = 2147483647
const UnLimitedTime = MaxInt32
const MissPercentageVal = 0
const maxInt32 = 2147483647
const unLimitedTime = maxInt32
const missPercentageVal = 0

func main() {
var coresCount int
Expand All @@ -33,13 +33,13 @@ func main() {
},
cli.IntFlag{
Name: "timeSeconds, t",
Value: UnLimitedTime,
Value: unLimitedTime,
Usage: "how long",
Destination: &timeSeconds,
},
cli.IntFlag{
Name: "percentage, p",
Value: MissPercentageVal,
Value: missPercentageVal,
Usage: "percentage of each specify cores",
Destination: &percentage,
},
Expand Down

0 comments on commit e623bc8

Please sign in to comment.