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 21... Line 21...
21
    private $_filecontent = array();
21
    private $_filecontent = array();
22
 
22
 
23
    public function __construct()
23
    public function __construct()
24
    {
24
    {
25
        parent::__construct();
25
        parent::__construct();
26
        switch (defined('PSI_SENSOR_SPEEDFAN_ACCESS')?strtolower(PSI_SENSOR_SPEEDFAN_ACCESS):'command') {
26
        if ((PSI_OS == 'WINNT') && !defined('PSI_EMU_HOSTNAME')) switch (defined('PSI_SENSOR_SPEEDFAN_ACCESS')?strtolower(PSI_SENSOR_SPEEDFAN_ACCESS):'command') {
27
        case 'command':
27
        case 'command':
28
            if (CommonFunctions::executeProgram("SpeedFanGet.exe", "", $buffer, PSI_DEBUG) && (strlen($buffer) > 0)) {
28
            if (CommonFunctions::executeProgram("SpeedFanGet.exe", "", $buffer, PSI_DEBUG) && (strlen($buffer) > 0)) {
29
                if (preg_match("/^Temperatures:\s+(.+)$/m", $buffer, $out)) {
29
                if (preg_match("/^Temperatures:\s+(.+)$/m", $buffer, $out)) {
30
                    $this->_filecontent["temp"] = $out[1];
30
                    $this->_filecontent["temp"] = $out[1];
31
                }
31
                }