Skip to content

Commit 4b2d9fd

Browse files
author
glasspelican
committed
Show memory used by applications, not used + disk cache
1 parent 19f90d6 commit 4b2d9fd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sh/mem.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22

33
//exec('cat /proc/meminfo|awk \'{print $1","$2}\'',$result);
44
//exec('free -m|awk \'{print $1","$2","$3","$4}\'',$result);
5-
exec('free -tmo|awk \'{print $1","$2","$3","$4}\'',$result);
5+
exec('free -tmo|awk \'{print $1","$2","$3-$6-$7","$4+$6+$7}\'',$result);
66
echo json_encode( explode(',',$result[1]) );

0 commit comments

Comments
 (0)