Skip to content

Commit e623bc8

Browse files
committed
Modify txt
1 parent 7f16324 commit e623bc8

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ go-cpu-load -p 30 -t 10
3131
```
3232

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

3636
# Parameters
3737

main.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ import (
1111
// EINVAL Error Code: #define EINVAL 22 /* Invalid argument */
1212
const EINVAL = 23
1313

14-
const MaxInt32 = 2147483647
15-
const UnLimitedTime = MaxInt32
16-
const MissPercentageVal = 0
14+
const maxInt32 = 2147483647
15+
const unLimitedTime = maxInt32
16+
const missPercentageVal = 0
1717

1818
func main() {
1919
var coresCount int
@@ -33,13 +33,13 @@ func main() {
3333
},
3434
cli.IntFlag{
3535
Name: "timeSeconds, t",
36-
Value: UnLimitedTime,
36+
Value: unLimitedTime,
3737
Usage: "how long",
3838
Destination: &timeSeconds,
3939
},
4040
cli.IntFlag{
4141
Name: "percentage, p",
42-
Value: MissPercentageVal,
42+
Value: missPercentageVal,
4343
Usage: "percentage of each specify cores",
4444
Destination: &percentage,
4545
},

0 commit comments

Comments
 (0)