fix description error. GiB not GB

This commit is contained in:
clinton-hall 2014-04-01 17:27:13 +10:30
commit 966371b610

View file

@ -19,7 +19,7 @@ def getDirectorySize(directory):
for file in files: for file in files:
filename = os.path.join(path, file) filename = os.path.join(path, file)
dir_size += os.path.getsize(filename) dir_size += os.path.getsize(filename)
dir_size = dir_size / (1024.0 * 1024.0 * 1024.0) # convert to GB dir_size = dir_size / (1024.0 * 1024.0 * 1024.0) # convert to GiB
return dir_size return dir_size