/usr/share/phpmyadmin/libraries/classes/Server/SysInfo
NameSizeModeActions
Base.php7720644editdlrm
Linux.php26200644editdlrm
SunOs.php19030644editdlrm
SysInfo.php17900644editdlrm
WindowsNt.php33630644editdlrm
Edit: /usr/share/phpmyadmin/libraries/classes/Server/SysInfo/SunOs.php (1903B)
kstat('unix:0:system_misc:avenrun_1min'); return ['loadavg' => $load1]; } /** * Checks whether class is supported in this environment * * @return bool true on success */ public function supported() { return @is_readable('/proc/meminfo'); } /** * Gets information about memory usage * * @return array with memory usage data */ public function memory() { $pagesize = (int) $this->kstat('unix:0:seg_cache:slab_size'); $mem = []; $mem['MemTotal'] = (int) $this->kstat('unix:0:system_pages:pagestotal') * $pagesize; $mem['MemUsed'] = (int) $this->kstat('unix:0:system_pages:pageslocked') * $pagesize; $mem['MemFree'] = (int) $this->kstat('unix:0:system_pages:pagesfree') * $pagesize; $mem['SwapTotal'] = (int) $this->kstat('unix:0:vminfo:swap_avail') / 1024; $mem['SwapUsed'] = (int) $this->kstat('unix:0:vminfo:swap_alloc') / 1024; $mem['SwapFree'] = (int) $this->kstat('unix:0:vminfo:swap_free') / 1024; return $mem; } }