phpsysinfo/includes/os/class.AIX.inc.php 1 location
|
@@ 82-89 (lines=8) @@
|
79 |
|
* optionally create a loadbar |
80 |
|
* @return void |
81 |
|
*/ |
82 |
|
private function _loadavg() |
83 |
|
{ |
84 |
|
if (CommonFunctions::executeProgram('uptime', '', $buf)) { |
85 |
|
if (preg_match("/average: (.*), (.*), (.*)$/", $buf, $ar_buf)) { |
86 |
|
$this->sys->setLoad($ar_buf[1].' '.$ar_buf[2].' '.$ar_buf[3]); |
87 |
|
} |
88 |
|
} |
89 |
|
} |
90 |
|
|
91 |
|
/** |
92 |
|
* CPU information |
phpsysinfo/includes/os/class.HPUX.inc.php 1 location
|
@@ 81-88 (lines=8) @@
|
78 |
|
* |
79 |
|
* @return void |
80 |
|
*/ |
81 |
|
private function _loadavg() |
82 |
|
{ |
83 |
|
if (CommonFunctions::executeProgram('uptime', '', $buf)) { |
84 |
|
if (preg_match("/average: (.*), (.*), (.*)$/", $buf, $ar_buf)) { |
85 |
|
$this->sys->setLoad($ar_buf[1].' '.$ar_buf[2].' '.$ar_buf[3]); |
86 |
|
} |
87 |
|
} |
88 |
|
} |
89 |
|
|
90 |
|
/** |
91 |
|
* CPU information |
phpsysinfo/includes/os/class.Minix.inc.php 1 location
|
@@ 218-225 (lines=8) @@
|
215 |
|
* |
216 |
|
* @return void |
217 |
|
*/ |
218 |
|
private function _loadavg() |
219 |
|
{ |
220 |
|
if (CommonFunctions::executeProgram('uptime', '', $buf)) { |
221 |
|
if (preg_match("/load averages: (.*), (.*), (.*)$/", $buf, $ar_buf)) { |
222 |
|
$this->sys->setLoad($ar_buf[1].' '.$ar_buf[2].' '.$ar_buf[3]); |
223 |
|
} |
224 |
|
} |
225 |
|
} |
226 |
|
|
227 |
|
/** |
228 |
|
* Virtual Host Name |