Skip to content

Instantly share code, notes, and snippets.

View novln's full-sized avatar
💻
コンピューター

Thomas LE ROUX novln

💻
コンピューター
  • Paris
View GitHub Profile
@novln
novln / gist:5774668
Last active December 18, 2015 11:19 — forked from rlemon/gist:1780212
<?php
/* Gets individual core information */
function GetCoreInformation() {
$data = file('/proc/stat');
$cores = array();
foreach( $data as $line ) {
if( preg_match('/^cpu[0-9]/', $line) )
{
$info = explode(' ', $line );
$cores[] = array(