mirror of
				https://github.com/billz/raspap-webgui.git
				synced 2025-03-01 10:31:47 +00:00 
			
		
		
		
	Merge pull request #1124 from BANKA2017/fix-function-used-memory
Fix: function usedMemory
This commit is contained in:
		@@ -42,7 +42,7 @@ class Sysinfo
 | 
			
		||||
 | 
			
		||||
    public function usedMemory()
 | 
			
		||||
    {
 | 
			
		||||
        $used = shell_exec("free -m | awk '/Mem:/ { total=$2 ; used=$3 } END { print used/total*100}'");
 | 
			
		||||
        $used = shell_exec("free -m | awk 'NR==2{ total=$2 ; used=$3 } END { print used/total*100}'");
 | 
			
		||||
        return floor($used);
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user