mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-08-03 00:17:43 +00:00
support/scripts/size-stats: fix copy/paste error in ArgumentParser
A copy/paste error in the ArgumentParser() constructor call disclosed the fact that the author of the script has shamefully based his work on the existing graph-build-time script. This commit fixes this mistake, therefore hiding in a better way how size-stats was vampirized from graph-build-time. Reported-by: Thomas De Schampheleire <patrickdepinguin@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
This commit is contained in:
parent
87d813f69a
commit
a059055c52
@ -191,7 +191,7 @@ def gen_packages_csv(pkgsizes, outputf):
|
|||||||
for (pkg, size) in pkgsizes.items():
|
for (pkg, size) in pkgsizes.items():
|
||||||
wr.writerow([pkg, size, "%.1f" % (float(size) / total * 100)])
|
wr.writerow([pkg, size, "%.1f" % (float(size) / total * 100)])
|
||||||
|
|
||||||
parser = argparse.ArgumentParser(description='Draw build time graphs')
|
parser = argparse.ArgumentParser(description='Draw size statistics graphs')
|
||||||
|
|
||||||
parser.add_argument("--builddir", '-i', metavar="BUILDDIR", required=True,
|
parser.add_argument("--builddir", '-i', metavar="BUILDDIR", required=True,
|
||||||
help="Buildroot output directory")
|
help="Buildroot output directory")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user