Subversion Repositories ALCASAR

Rev

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

Rev 3037 Rev 3100
Line 26... Line 26...
26
     */
26
     */
27
    public function __construct()
27
    public function __construct()
28
    {
28
    {
29
        parent::__construct();
29
        parent::__construct();
30
        $lines = "";
30
        $lines = "";
31
        if ((PSI_OS == 'Linux') && !defined('PSI_EMU_HOSTNAME')) switch (defined('PSI_SENSOR_LMSENSORS_ACCESS')?strtolower(PSI_SENSOR_LMSENSORS_ACCESS):'command') {
31
        if ((PSI_OS == 'Linux') && (!defined('PSI_EMU_HOSTNAME') || defined('PSI_EMU_PORT'))) switch (defined('PSI_SENSOR_LMSENSORS_ACCESS')?strtolower(PSI_SENSOR_LMSENSORS_ACCESS):'command') {
32
        case 'command':
32
        case 'command':
33
            CommonFunctions::executeProgram("sensors", "", $lines);
33
            CommonFunctions::executeProgram("sensors", "", $lines);
34
            break;
34
            break;
35
        case 'data':
35
        case 'data':
-
 
36
            if (!defined('PSI_EMU_PORT')) {
36
            CommonFunctions::rftsdata('lmsensors.tmp', $lines);
37
                CommonFunctions::rftsdata('lmsensors.tmp', $lines);
-
 
38
            }
37
            break;
39
            break;
38
        default:
40
        default:
39
            $this->error->addConfigError('__construct()', '[sensor_lmsensors] ACCESS');
41
            $this->error->addConfigError('__construct()', '[sensor_lmsensors] ACCESS');
40
        }
42
        }
41
 
43