Subversion Repositories ALCASAR

Rev

Rev 3037 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log

Rev 3037 Rev 3100
Line 244... Line 244...
244
     *
244
     *
245
     * @return void
245
     * @return void
246
     */
246
     */
247
    public function build()
247
    public function build()
248
    {
248
    {
249
        if ((PSI_OS == 'Linux') && !defined('PSI_EMU_HOSTNAME')) {
249
        if ((PSI_OS == 'Linux') && (!defined('PSI_EMU_HOSTNAME') || defined('PSI_EMU_PORT'))) {
250
            $hwpaths = CommonFunctions::findglob("/sys/class/hwmon/hwmon*/", GLOB_NOSORT);
250
            $hwpaths = CommonFunctions::findglob("/sys/class/hwmon/hwmon*/", GLOB_NOSORT);
251
            if (is_array($hwpaths) && (count($hwpaths) > 0)) {
251
            if (is_array($hwpaths) && (count($hwpaths) > 0)) {
252
                $hwpaths2 = CommonFunctions::findglob("/sys/class/hwmon/hwmon*/device/", GLOB_NOSORT);
252
                $hwpaths2 = CommonFunctions::findglob("/sys/class/hwmon/hwmon*/device/", GLOB_NOSORT);
253
                if (is_array($hwpaths2) && (count($hwpaths2) > 0)) {
253
                if (is_array($hwpaths2) && (count($hwpaths2) > 0)) {
254
                    $hwpaths = array_merge($hwpaths, $hwpaths2);
254
                    $hwpaths = array_merge($hwpaths, $hwpaths2);