mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-04-27 11:22:17 +00:00
acrn-config: get the max number with integer list
Get the max number with integer list to instead string 'number'. Tracked-On: #5199 Signed-off-by: Shuang Zheng <shuang.zheng@intel.com> Acked-by: Victor Sun <victor.sun@intel.com>
This commit is contained in:
parent
dd8393d349
commit
50629f682d
@ -225,7 +225,7 @@ def dump_max_msix_table_num(config):
|
||||
res_lines = parser_lib.get_output_lines(cmd)
|
||||
for line in res_lines:
|
||||
tmp_num = line.split('=')[1].split()[0]
|
||||
msix_table_num_list.append(tmp_num)
|
||||
msix_table_num_list.append(int(tmp_num))
|
||||
|
||||
if msix_table_num_list:
|
||||
max_msix_table_num = max(msix_table_num_list)
|
||||
|
Loading…
Reference in New Issue
Block a user