Subversion Repositories ALCASAR

Rev

Rev 2770 | Rev 3037 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log

Rev 2770 Rev 2976
Line 25... Line 25...
25
     * fill the private content var through command or data access
25
     * fill the private content var through command or data access
26
     */
26
     */
27
    public function __construct()
27
    public function __construct()
28
    {
28
    {
29
        parent::__construct();
29
        parent::__construct();
30
        switch (defined('PSI_SENSOR_HEALTHD_ACCESS')?strtolower(PSI_SENSOR_HEALTHD_ACCESS):'command') {
30
        if (PSI_OS == 'FreeBSD') switch (defined('PSI_SENSOR_HEALTHD_ACCESS')?strtolower(PSI_SENSOR_HEALTHD_ACCESS):'command') {
31
        case 'command':
31
        case 'command':
32
            if (CommonFunctions::executeProgram('healthdc', '-t', $lines)) {
32
            if (CommonFunctions::executeProgram('healthdc', '-t', $lines)) {
33
                $lines0 = preg_split("/\n/", $lines, 1, PREG_SPLIT_NO_EMPTY);
33
                $lines0 = preg_split("/\n/", $lines, 1, PREG_SPLIT_NO_EMPTY);
34
                if (count($lines0) == 1) {
34
                if (count($lines0) == 1) {
35
                    $this->_values = preg_split("/\t+/", $lines0[0]);
35
                    $this->_values = preg_split("/\t+/", $lines0[0]);