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 88... Line 88...
88
                }
88
                }
89
            }
89
            }
90
            break;
90
            break;
91
        default:
91
        default:
92
            $this->error->addConfigError("temperature()", "[sensor_hddtemp] ACCESS");
92
            $this->error->addConfigError("temperature()", "[sensor_hddtemp] ACCESS");
93
            break;
-
 
94
        }
93
        }
95
        // Timo van Roermund: parse the info from the hddtemp daemon.
94
        // Timo van Roermund: parse the info from the hddtemp daemon.
96
        foreach ($ar_buf as $line) {
95
        foreach ($ar_buf as $line) {
97
            $data = array();
96
            $data = array();
98
            if (preg_match("/\|(.*)\|(.*)\|(.*)\|(.*)\|/", $line, $data)) {
97
            if (preg_match("/\|(.*)\|(.*)\|(.*)\|(.*)\|/", $line, $data)) {
Line 113... Line 112...
113
    /**
112
    /**
114
     * get the information
113
     * get the information
115
     *
114
     *
116
     * @see PSI_Interface_Sensor::build()
115
     * @see PSI_Interface_Sensor::build()
117
     *
116
     *
118
     * @return Void
117
     * @return void
119
     */
118
     */
120
    public function build()
119
    public function build()
121
    {
120
    {
122
        $this->_temperature();
121
        $this->_temperature();
123
    }
122
    }