From 5bf66662a9bdd62c5bccab15e607cd95cfb8fcab Mon Sep 17 00:00:00 2001 From: Charles Cabergs Date: Mon, 27 Jul 2020 10:05:23 +0200 Subject: Removed wordpress and phpmyadmin, my server doesn't handle it well and it brings shame on my familly --- srcs/phpmyadmin/libraries/classes/SysInfoSunOS.php | 81 ---------------------- 1 file changed, 81 deletions(-) delete mode 100644 srcs/phpmyadmin/libraries/classes/SysInfoSunOS.php (limited to 'srcs/phpmyadmin/libraries/classes/SysInfoSunOS.php') diff --git a/srcs/phpmyadmin/libraries/classes/SysInfoSunOS.php b/srcs/phpmyadmin/libraries/classes/SysInfoSunOS.php deleted file mode 100644 index 6158b62..0000000 --- a/srcs/phpmyadmin/libraries/classes/SysInfoSunOS.php +++ /dev/null @@ -1,81 +0,0 @@ -_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; - } -} -- cgit