Code Duplication    Length = 11-11 lines in 2 locations

phpsysinfo/includes/os/class.AIX.inc.php 1 location

@@ 65-75 (lines=11) @@
62
     * time the system is running
63
     * @return void
64
     */
65
    private function _uptime()
66
    {
67
        if (CommonFunctions::executeProgram('uptime', '', $buf)) {
68
            if (preg_match("/up (\d+) days,\s*(\d+):(\d+),/", $buf, $ar_buf) || preg_match("/up (\d+) day,\s*(\d+):(\d+),/", $buf, $ar_buf)) {
69
                $min = $ar_buf[3];
70
                $hours = $ar_buf[2];
71
                $days = $ar_buf[1];
72
                $this->sys->setUptime($days * 86400 + $hours * 3600 + $min * 60);
73
            }
74
        }
75
    }
76
77
    /**
78
     * Processor Load

phpsysinfo/includes/os/class.HPUX.inc.php 1 location

@@ 63-73 (lines=11) @@
60
     *
61
     * @return void
62
     */
63
    private function _uptime()
64
    {
65
        if (CommonFunctions::executeProgram('uptime', '', $buf)) {
66
            if (preg_match("/up (\d+) days,\s*(\d+):(\d+),/", $buf, $ar_buf)) {
67
                $min = $ar_buf[3];
68
                $hours = $ar_buf[2];
69
                $days = $ar_buf[1];
70
                $this->sys->setUptime($days * 86400 + $hours * 3600 + $min * 60);
71
            }
72
        }
73
    }
74
75
    /**
76
     * Processor Load