General : cleaning and optimizing CSS

General : responsive design
General : reload button now spins when you reload block
General : update jQuery plugin Knob to 1.2.11
General : optimizing security (config file esm.config.json is now in the conf/ folder with an htaccess)
CPU : retrieves correctly CPU frequency for Raspberry Pi
CPU : add CPU temperature (+ option to enable/disable)
System : little correction for getting distro name
Swap : fix if swap is disabled
Services status : adds protocol TCP or UDP for checking service status
Services status : new option to hide port number (see show_port in services section)
This commit is contained in:
ShevAbam
2015-07-07 15:57:41 +02:00
parent dd982cee07
commit 9970343fe5
32 changed files with 2486 additions and 410 deletions
+4 -2
View File
@@ -1,5 +1,5 @@
<?php
require 'Utils/Misc.class.php';
require '../autoload.php';
$free = 0;
@@ -22,7 +22,9 @@ if (!($total = shell_exec('grep MemTotal /proc/meminfo | awk \'{print $2}\'')))
$used = $total - $free;
// Percent used
$percent_used = 100 - (round($free / $total * 100));
$percent_used = 0;
if ($total > 0)
$percent_used = 100 - (round($free / $total * 100));
$datas = array(