From 964c67df640c1cee9b742aa1a6f9bd4d8d7ab2f1 Mon Sep 17 00:00:00 2001 From: Igor Pashev Date: Sat, 14 Sep 2013 23:19:37 +0400 Subject: Define get_memory_size() --- install | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'install') diff --git a/install b/install index 5c79d82..0ab6d2f 100755 --- a/install +++ b/install @@ -211,6 +211,10 @@ Whould you like to continue?''', if not welcome: raise Abort('Installation canceled') +def get_memory_size(): + return os.sysconf("SC_PHYS_PAGES") * os.sysconf("SC_PAGE_SIZE") + + def get_zpool_slice(pool_name): result = [] ''' Returns slices/disks (e. g. c0t4d0s0) on which zpool exists ''' -- cgit v1.2.3