analyze_brprob.py: fix SI units
2017-11-08 Martin Liska <mliska@suse.cz> * analyze_brprob.py: Fix abbreviations for SI units. From-SVN: r254517
This commit is contained in:
parent
41f1dada8e
commit
caba2b36fa
|
@ -1,3 +1,7 @@
|
||||||
|
2017-11-08 Martin Liska <mliska@suse.cz>
|
||||||
|
|
||||||
|
* analyze_brprob.py: Fix abbreviations for SI units.
|
||||||
|
|
||||||
2017-10-02 Thomas Schwinge <thomas@codesourcery.com>
|
2017-10-02 Thomas Schwinge <thomas@codesourcery.com>
|
||||||
|
|
||||||
* gcc_update (files_and_dependencies): Handle libbacktrace.
|
* gcc_update (files_and_dependencies): Handle libbacktrace.
|
||||||
|
|
|
@ -149,7 +149,7 @@ class Summary:
|
||||||
|
|
||||||
def count_formatted(self):
|
def count_formatted(self):
|
||||||
v = self.count
|
v = self.count
|
||||||
for unit in ['','K','M','G','T','P','E','Z']:
|
for unit in ['', 'k', 'M', 'G', 'T', 'P', 'E', 'Z', 'Y']:
|
||||||
if v < 1000:
|
if v < 1000:
|
||||||
return "%3.2f%s" % (v, unit)
|
return "%3.2f%s" % (v, unit)
|
||||||
v /= 1000.0
|
v /= 1000.0
|
||||||
|
|
Loading…
Reference in New Issue