You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
8 years ago | |
---|---|---|
examples | 8 years ago | |
lib | 8 years ago | |
tests | 8 years ago | |
.gitignore | 8 years ago | |
.preflight | 8 years ago | |
LICENSE | 8 years ago | |
README.md | 8 years ago | |
composer.json | 8 years ago | |
phpunit.xml | 8 years ago |
README.md
linux/cpu
Installing using composer
Install from the command line:
$ composer require linux/cpu:0.1.*
Or add to your composer.json
:
"require": {
"linux/cpu": "0.1.*"
}
Using
use Linux\Cpu\Cpu;
$cpu = new Cpu();
$governors = $cpu->getAvailableGovernors();
$cpu->setGovernor("ondemand");
NOTE: You probably need to run the script using linux/cpu
as root, for example
using sudo
or su
.