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.
Noccy 214a214683 Removed broken symlinks from static test data 8 years ago
examples Initial commit 8 years ago
lib Initial commit 8 years ago
tests Removed broken symlinks from static test data 8 years ago
.gitignore Initial commit 8 years ago
.preflight Initial commit 8 years ago
LICENSE Initial commit 8 years ago
README.md Initial commit 8 years ago
composer.json Initial commit 8 years ago
phpunit.xml Initial commit 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.