aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Arapov <anton@redhat.com>2010-10-20 12:49:21 +0200
committerEric B Munson <emunson@mgebm.net>2010-10-20 10:49:20 -0500
commit26c93da32943f6fee017d5b63488dc21789aace5 (patch)
tree6c124e70a1f9dcaa58c9779ee2f5cf37ebc2a850
parent2a62849b20184a271b2d925d114c42062461a28e (diff)
downloadlibhugetlbfs-26c93da32943f6fee017d5b63488dc21789aace5.tar.gz
setup_helper: whitespace fixes
ssia. important thing in python... Signed-off-by: Anton Arapov <anton@redhat.com> Signed-off-by: Eric B Munson <emunson@mgebm.net>
-rwxr-xr-xhuge_page_setup_helper.py11
1 files changed, 5 insertions, 6 deletions
diff --git a/huge_page_setup_helper.py b/huge_page_setup_helper.py
index cdf3121..737b3d9 100755
--- a/huge_page_setup_helper.py
+++ b/huge_page_setup_helper.py
@@ -95,13 +95,13 @@ while not userIn:
try:
userIn = raw_input("How much memory would you like to allocate for huge pages? "
"(input in MB, unless postfixed with GB): ")
- if userIn[-2:] == "GB":
+ if userIn[-2:] == "GB":
userHugePageReqMB = int(userIn[0:-2]) * 1024
- elif userIn[-1:] == "G":
+ elif userIn[-1:] == "G":
userHugePageReqMB = int(userIn[0:-1]) * 1024
- elif userIn[-2:] == "MB":
+ elif userIn[-2:] == "MB":
userHugePageReqMB = int(userIn[0:-2])
- elif userIn[-1:] == "M":
+ elif userIn[-1:] == "M":
userHugePageReqMB = int(userIn[0:-1])
else:
userHugePageReqMB = int(userIn)
@@ -159,7 +159,7 @@ if userGIDReq > -1:
print "Group %s (gid %d) already exists, we'll use it" % (userGroupReq, userGIDReq)
else:
if debug == False:
- os.popen("/usr/sbin/groupadd %s" % userGroupReq)
+ os.popen("/usr/sbin/groupadd %s" % userGroupReq)
else:
print "/usr/sbin/groupadd %s" % userGroupReq
groupNames = os.popen("/usr/bin/getent group %s" % userGroupReq).readlines()
@@ -326,4 +326,3 @@ print " * Remaining System Memory..: %6d MB" % (memTotal - userHugePageReqMB)
print " * Huge Page User Group.....: %s (%d)" % (userGroupReq, userGIDReq)
print
-