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 40... Line 40...
40
        $this->setPCIRegExp1("/(.*): <(.*)>(.*) pci[0-9]+$/");
40
        $this->setPCIRegExp1("/(.*): <(.*)>(.*) pci[0-9]+$/");
41
        $this->setPCIRegExp2("/(.*): <(.*)>.* at [.0-9]+ irq/");
41
        $this->setPCIRegExp2("/(.*): <(.*)>.* at [.0-9]+ irq/");
42
    }
42
    }
43
 
43
 
44
    /**
44
    /**
45
     * UpTime
-
 
46
     * time the system is running
-
 
47
     *
-
 
48
     * @return void
-
 
49
     */
-
 
50
    private function _uptime()
-
 
51
    {
-
 
52
        $s = preg_split('/ /', $this->grabkey('kern.boottime'));
-
 
53
        $a = preg_replace('/,/', '', $s[3]);
-
 
54
        $this->sys->setUptime(time() - $a);
-
 
55
    }
-
 
56
 
-
 
57
    /**
-
 
58
     * get network information
45
     * get network information
59
     *
46
     *
60
     * @return void
47
     * @return void
61
     */
48
     */
62
    private function _network()
49
    private function _network()
Line 193... Line 180...
193
    /**
180
    /**
194
     * get the information
181
     * get the information
195
     *
182
     *
196
     * @see BSDCommon::build()
183
     * @see BSDCommon::build()
197
     *
184
     *
198
     * @return Void
185
     * @return void
199
     */
186
     */
200
    public function build()
187
    public function build()
201
    {
188
    {
202
        parent::build();
189
        parent::build();
203
        if (!$this->blockname || $this->blockname==='vitals') {
190
        if (!$this->blockname || $this->blockname==='vitals') {
204
            $this->_distroicon();
191
            $this->_distroicon();
205
            $this->_uptime();
-
 
206
            $this->_processes();
192
            $this->_processes();
207
        }
193
        }
208
        if (!$this->blockname || $this->blockname==='network') {
-
 
209
            $this->_network();
-
 
210
        }
-
 
211
        if (!$this->blockname || $this->blockname==='memory') {
194
        if (!$this->blockname || $this->blockname==='memory') {
212
            $this->_memoryadditional();
195
            $this->_memoryadditional();
213
        }
196
        }
-
 
197
        if (!$this->blockname || $this->blockname==='network') {
-
 
198
            $this->_network();
-
 
199
        }
214
    }
200
    }
215
}
201
}