update-payload-extractor: Import master update_payload
Change-Id: I94798f08b2e02677390024abcd43d45af7f585ee
This commit is contained in:
@@ -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' % (
|
||||
|
||||
Reference in New Issue
Block a user