Subversion Repositories ALCASAR

Rev

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

Rev 3100 Rev 3287
Line 305... Line 305...
305
                }
305
                }
306
                $this->sys->setMemUsed($this->sys->getMemTotal() - $this->sys->getMemFree());
306
                $this->sys->setMemUsed($this->sys->getMemTotal() - $this->sys->getMemFree());
307
            }
307
            }
308
 
308
 
309
            if (($swap = $this->grabkey("vm.swapusage")) > 0) {
309
            if (($swap = $this->grabkey("vm.swapusage")) > 0) {
310
                $swap0 = preg_split('/M/', $swapBuff);
310
                $swap0 = preg_split('/M/', $swap);
311
                $swap1 = preg_split('/=/', $swap0[0]);
311
                $swap1 = preg_split('/=/', $swap0[0]);
312
                $swap2 = preg_split('/=/', $swap0[1]);
312
                $swap2 = preg_split('/=/', $swap0[1]);
313
                $swap3 = preg_split('/=/', $swap0[2]);
313
                $swap3 = preg_split('/=/', $swap0[2]);
314
                if (($swap=str_replace(',', '.', trim($swap1[1]))) > 0) {
314
                if (($swap=str_replace(',', '.', trim($swap1[1]))) > 0) {
315
                    $dev = new DiskDevice();
315
                    $dev = new DiskDevice();