Subversion Repositories ALCASAR

Rev

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

Rev 2976 Rev 3037
Line 38... Line 38...
38
                }
38
                }
39
            }
39
            }
40
            $this->_lines = preg_split("/\r?\n/", $lines, -1, PREG_SPLIT_NO_EMPTY);
40
            $this->_lines = preg_split("/\r?\n/", $lines, -1, PREG_SPLIT_NO_EMPTY);
41
            break;
41
            break;
42
        case 'data':
42
        case 'data':
43
            if (CommonFunctions::rfts(PSI_APP_ROOT.'/data/ipmicfg.txt', $lines)) {
43
            if (CommonFunctions::rftsdata('ipmicfg.tmp', $lines)) {
44
                $this->_lines = preg_split("/\r?\n/", $lines, -1, PREG_SPLIT_NO_EMPTY);
44
                $this->_lines = preg_split("/\r?\n/", $lines, -1, PREG_SPLIT_NO_EMPTY);
45
            }
45
            }
46
            break;
46
            break;
47
        default:
47
        default:
48
            $this->error->addConfigError('__construct()', '[sensor_ipmicfg] ACCESS');
48
            $this->error->addConfigError('__construct()', '[sensor_ipmicfg] ACCESS');
49
            break;
-
 
50
        }
49
        }
51
    }
50
    }
52
 
51
 
53
    /**
52
    /**
54
     * get temperature information
53
     * get temperature information
Line 223... Line 222...
223
    /**
222
    /**
224
     * get the information
223
     * get the information
225
     *
224
     *
226
     * @see PSI_Interface_Sensor::build()
225
     * @see PSI_Interface_Sensor::build()
227
     *
226
     *
228
     * @return Void
227
     * @return void
229
     */
228
     */
230
    public function build()
229
    public function build()
231
    {
230
    {
232
        $this->_temperature();
231
        $this->_temperature();
233
        $this->_voltage();
232
        $this->_voltage();