File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ go-cpu-load -p 30 -t 10
31
31
```
32
32
33
33
- ` 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
35
35
36
36
# Parameters
37
37
Original file line number Diff line number Diff line change @@ -11,9 +11,9 @@ import (
11
11
// EINVAL Error Code: #define EINVAL 22 /* Invalid argument */
12
12
const EINVAL = 23
13
13
14
- const MaxInt32 = 2147483647
15
- const UnLimitedTime = MaxInt32
16
- const MissPercentageVal = 0
14
+ const maxInt32 = 2147483647
15
+ const unLimitedTime = maxInt32
16
+ const missPercentageVal = 0
17
17
18
18
func main () {
19
19
var coresCount int
@@ -33,13 +33,13 @@ func main() {
33
33
},
34
34
cli.IntFlag {
35
35
Name : "timeSeconds, t" ,
36
- Value : UnLimitedTime ,
36
+ Value : unLimitedTime ,
37
37
Usage : "how long" ,
38
38
Destination : & timeSeconds ,
39
39
},
40
40
cli.IntFlag {
41
41
Name : "percentage, p" ,
42
- Value : MissPercentageVal ,
42
+ Value : missPercentageVal ,
43
43
Usage : "percentage of each specify cores" ,
44
44
Destination : & percentage ,
45
45
},
You can’t perform that action at this time.
0 commit comments