Wrong logic in matching the process name
HiGarfield opened this issue · comments
Line 64 in f4d2682
"strncmp" is not a correct way.
For example, if we use "cpulimit -e abc -l 30", then the process with the name "abcd" may be limited.
The correct way is to use "strcmp".