[PATCH 1/2] fix a calculation error in get_system_size