0
Fork 0
mirror of https://github.com/caddyserver/caddy.git synced 2025-01-06 22:40:31 -05:00
caddy/caddy
detaoin c296d7e7e0 caddymain: fix setCPU silently ignoring small percent values (#1969)
* caddymain: fix setCPU silently ignoring small percent values

the percent value is resolved in a GOMAXPROCS relative number by simple
division, thus rounding down the non-integer quotient. If zero, the call
to runtime.GOMAXPROCS is silently ignored.

We decide here to exceptionally round up the CPU cap in case of percent
values that are too small.

* caddymain: gofmt -s
2018-01-15 18:17:27 -07:00
..
caddymain caddymain: fix setCPU silently ignoring small percent values (#1969) 2018-01-15 18:17:27 -07:00
build.go Apply Apache license to all .go source files (closes #1865) 2017-09-22 23:56:58 -06:00
main.go Apply Apache license to all .go source files (closes #1865) 2017-09-22 23:56:58 -06:00
main_test.go Apply Apache license to all .go source files (closes #1865) 2017-09-22 23:56:58 -06:00