Go to file
2015-01-23 04:27:44 +01:00
examples Initial commit 2015-01-23 04:21:07 +01:00
lib Initial commit 2015-01-23 04:21:07 +01:00
tests Removed broken symlinks from static test data 2015-01-23 04:27:44 +01:00
.gitignore Initial commit 2015-01-23 04:21:07 +01:00
.preflight Initial commit 2015-01-23 04:21:07 +01:00
composer.json Initial commit 2015-01-23 04:21:07 +01:00
LICENSE Initial commit 2015-01-23 04:21:07 +01:00
phpunit.xml Initial commit 2015-01-23 04:21:07 +01:00
README.md Initial commit 2015-01-23 04:21:07 +01:00

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.