Subversion Repositories ALCASAR

Rev

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

Rev 2976 Rev 3037
Line 35... Line 35...
35
                    $this->_values = preg_split("/\t+/", $lines0[0]);
35
                    $this->_values = preg_split("/\t+/", $lines0[0]);
36
                }
36
                }
37
            }
37
            }
38
            break;
38
            break;
39
        case 'data':
39
        case 'data':
40
            if (CommonFunctions::rfts(PSI_APP_ROOT.'/data/healthd.txt', $lines)) {
40
            if (CommonFunctions::rftsdata('healthd.tmp', $lines)) {
41
                $lines0 = preg_split("/\n/", $lines, 1, PREG_SPLIT_NO_EMPTY);
41
                $lines0 = preg_split("/\n/", $lines, 1, PREG_SPLIT_NO_EMPTY);
42
                if (count($lines0) == 1) {
42
                if (count($lines0) == 1) {
43
                    $this->_values = preg_split("/\t+/", $lines0[0]);
43
                    $this->_values = preg_split("/\t+/", $lines0[0]);
44
                }
44
                }
45
            }
45
            }
46
            break;
46
            break;
47
        default:
47
        default:
48
            $this->error->addConfigError('__construct()', '[sensor_healthd] ACCESS');
48
            $this->error->addConfigError('__construct()', '[sensor_healthd] ACCESS');
49
            break;
-
 
50
        }
49
        }
51
    }
50
    }
52
 
51
 
53
    /**
52
    /**
54
     * get temperature information
53
     * get temperature information
Line 144... Line 143...
144
    /**
143
    /**
145
     * get the information
144
     * get the information
146
     *
145
     *
147
     * @see PSI_Interface_Sensor::build()
146
     * @see PSI_Interface_Sensor::build()
148
     *
147
     *
149
     * @return Void
148
     * @return void
150
     */
149
     */
151
    public function build()
150
    public function build()
152
    {
151
    {
153
        $this->_temperature();
152
        $this->_temperature();
154
        $this->_fans();
153
        $this->_fans();