mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-28 13:46:32 +00:00
support/graph-size: don't report "Others" if size is zero
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr> Cc: Thomas De Schampheleire <thomas.de_schampheleire@nokia.com> Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
This commit is contained in:
parent
a2d20ca613
commit
c68ee73924
@ -137,6 +137,7 @@ def draw_graph(pkgsize, outputf):
|
|||||||
else:
|
else:
|
||||||
labels.append("%s (%d kB)" % (p, sz / 1000.))
|
labels.append("%s (%d kB)" % (p, sz / 1000.))
|
||||||
values.append(sz)
|
values.append(sz)
|
||||||
|
if other_value != 0:
|
||||||
labels.append("Other (%d kB)" % (other_value / 1000.))
|
labels.append("Other (%d kB)" % (other_value / 1000.))
|
||||||
values.append(other_value)
|
values.append(other_value)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user