Skip to content

Commit

Permalink
Fix pLUGIN rUNNER
Browse files Browse the repository at this point in the history
  • Loading branch information
ColdWindScholar committed Oct 3, 2023
1 parent 9e826cb commit 03c8782
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion bin/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,6 @@
"erofslim": "lz4hc,8",
"extrw": "",
"utcstamp": "1230768000",
"diysize": "1",
"diysize": "",
"diyimgtype": "1"
}
4 changes: 2 additions & 2 deletions run.py
Original file line number Diff line number Diff line change
Expand Up @@ -1139,10 +1139,10 @@ def inpacker(name, project, form, ftype):
else:
img_size0 = 0
img_size1 = dirsize(in_files, 1, 1).rsize_v
if settings.diysize == '1' and img_size0 < img_size1:
if settings.diysize == '' and img_size0 < img_size1:
ywarn("您设置的size过小,将动态调整size!")
img_size0 = dirsize(in_files, 1, 3, project + os.sep + "dynamic_partitions_op_list").rsize_v
elif settings.diysize == '1':
elif settings.diysize == '':
img_size0 = dirsize(in_files, 1, 3, project + os.sep + "dynamic_partitions_op_list").rsize_v
else:
img_size0 = dirsize(in_files, 1, 1, project + os.sep + "dynamic_partitions_op_list").rsize_v
Expand Down

0 comments on commit 03c8782

Please sign in to comment.