indentation
This commit is contained in:
parent
1d6426fc7b
commit
36724e8dc3
20
i3status.php
20
i3status.php
|
@ -194,20 +194,22 @@ function get_the_bandwith($ifaces=array())
|
||||||
* SENSORS
|
* SENSORS
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
function get_sensors() {
|
function get_sensors()
|
||||||
$sensors = array();
|
{
|
||||||
|
$sensors = array();
|
||||||
|
|
||||||
preg_match_all('/^([^:]+): +\+([0-9.]+)°C +\(high = \+([0-9.]+)°C, crit = \+([0-9.]+)°C\)/iU', shell_exec('sensors | grep "°C"'), $datas, PREG_SET_ORDER);
|
preg_match_all('/^([^:]+): +\+([0-9.]+)°C +\(high = \+([0-9.]+)°C, crit = \+([0-9.]+)°C\)/iU', shell_exec('sensors | grep "°C"'), $datas, PREG_SET_ORDER);
|
||||||
|
|
||||||
var_dump($datas);
|
var_dump($datas);
|
||||||
foreach($datas as $data) {
|
foreach ($datas as $data) {
|
||||||
}
|
}
|
||||||
|
|
||||||
return $sensors;
|
return $sensors;
|
||||||
}
|
}
|
||||||
|
|
||||||
function get_sensor($item) {
|
function get_sensor($item)
|
||||||
get_sensors();
|
{
|
||||||
|
get_sensors();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue