Project

General

Profile

« Previous | Next » 

Revision 281cf46f

Added by Ermal LUÇI over 12 years ago

Forgotten -n option

View differences:

etc/inc/util.inc
1455 1455
function get_memory() {
1456 1456

  
1457 1457
	$real = trim(`sysctl -n hw.physmem`, " \n");
1458
	$avail = trim(`sysctl hw.realmem`, " \n");
1458
	$avail = trim(`sysctl -n hw.realmem`, " \n");
1459 1459
	/* convert from bytes to megabytes */
1460 1460
	return array(($real/1048576),($avail/1048576));
1461 1461
}

Also available in: Unified diff