Changeset 1816122
- Timestamp:
- 02/06/2018 06:33:52 AM (8 years ago)
- Location:
- lw-mwp-tools/trunk
- Files:
-
- 3 edited
-
core.php (modified) (2 diffs)
-
lw-mwp-tools.php (modified) (2 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
lw-mwp-tools/trunk/core.php
r1816053 r1816122 2 2 defined('ABSPATH') or die('No!'); 3 3 4 $loadavg = sys_getloadavg(); 5 preg_match_all('/^processor/m', file_get_contents('/proc/cpuinfo'), $cores); 4 6 $meminfo = preg_split('/\ +|[\n]/', file_get_contents("/proc/meminfo")); //regex to split spaces and newline 5 7 … … 81 83 82 84 echo "<h2>Server Resource Monitor</h2>This page does not automatically update, you will need to reload it.<br><br> 85 Load average: " . number_format($loadavg[0], 2) . " " . number_format($loadavg[1], 2) . " " . number_format($loadavg[2], 2) . "<br> 86 Cores: " . count($cores[0]) . "<br><br> 83 87 <table> 84 88 <tr> -
lw-mwp-tools/trunk/lw-mwp-tools.php
r1816053 r1816122 5 5 Description: Easy access to system logs and resource usage on the Liquid Web Managed WordPress Hosting Platform. 6 6 Author: Francis Smith 7 Version: 0. 17 Version: 0.2 8 8 Author URI: https://github.com/fs1995 9 9 License: GPL2 … … 49 49 echo "<h2>NGINX Error Log viewer</h2>This page does not automatically update, you will need to refresh it.<pre>" . $lw_mwp_tools_log . "</pre>"; 50 50 } 51 -
lw-mwp-tools/trunk/readme.txt
r1816053 r1816122 4 4 Tags: liquidweb, liquid web, server info 5 5 Requires at least: 3.0.1 6 Tested up to: 4.9. 27 Requires PHP: 4.3.08 Stable tag: 0. 16 Tested up to: 4.9.3 7 Requires PHP: 5.1.3 8 Stable tag: 0.2 9 9 License: GPLv2 or later 10 10 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 41 41 == Changelog == 42 42 43 = 0.2 = 44 * View system load. 45 43 46 = 0.1 = 44 47 * First release! 48 49 == Upgrade Notice == 50 51 = 0.2 = 52 * Can now view system load.
Note: See TracChangeset
for help on using the changeset viewer.