Subversion Repositories ALCASAR

Rev

Rev 2770 | 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
25
     * fill the private content var through command
26
     */
26
     */
27
    public function __construct()
27
    public function __construct()
28
    {
28
    {
29
        parent::__construct();
29
        parent::__construct();
-
 
30
        if (PSI_OS == 'OpenBSD') {
30
        $lines = "";
31
            $lines = "";
31
//        CommonFunctions::executeProgram('sysctl', '-w hw.sensors', $lines);
32
//            CommonFunctions::executeProgram('sysctl', '-w hw.sensors', $lines);
32
        CommonFunctions::executeProgram('sysctl', 'hw.sensors', $lines);
33
            CommonFunctions::executeProgram('sysctl', 'hw.sensors', $lines);
33
        $this->_lines = preg_split("/\n/", $lines, -1, PREG_SPLIT_NO_EMPTY);
34
            $this->_lines = preg_split("/\n/", $lines, -1, PREG_SPLIT_NO_EMPTY);
-
 
35
        }
34
    }
36
    }
35
 
37
 
36
    /**
38
    /**
37
     * get temperature information
39
     * get temperature information
38
     *
40
     *