Update Buildroot From 17.02.8 -> 17.02.9

This commit is contained in:
jbnadal
2018-01-04 18:52:18 +01:00
parent a1196325f3
commit 9223c210d4
72 changed files with 446 additions and 324 deletions

View File

@@ -178,9 +178,17 @@ def gen_files_csv(filesdict, pkgsizes, outputf):
"File size in system (%)"])
for f, (pkgname, filesize) in filesdict.items():
pkgsize = pkgsizes[pkgname]
if pkgsize == 0:
percent_pkg = 0
else:
percent_pkg = float(filesize) / pkgsize * 100
percent_total = float(filesize) / total * 100
wr.writerow([f, pkgname, filesize, pkgsize,
"%.1f" % (float(filesize) / pkgsize * 100),
"%.1f" % (float(filesize) / total * 100)])
"%.1f" % percent_pkg,
"%.1f" % percent_total])
#