update-payload-extractor: Import master update_payload

Change-Id: I94798f08b2e02677390024abcd43d45af7f585ee
This commit is contained in:
Luca Stefani
2020-07-15 13:22:21 +02:00
parent 961ad2b7fc
commit cc06167604
12 changed files with 943 additions and 938 deletions

View File

@@ -16,6 +16,9 @@
"""Histogram generation tools."""
from __future__ import absolute_import
from __future__ import division
from collections import defaultdict
from update_payload import format_utils
@@ -110,7 +113,7 @@ class Histogram(object):
hist_bar = '|'
for key, count in self.data:
if self.total:
bar_len = count * self.scale / self.total
bar_len = count * self.scale // self.total
hist_bar = '|%s|' % ('#' * bar_len).ljust(self.scale)
line = '%s %s %s' % (