Home
last modified time | relevance | path

Searched refs:MakeHumanReadable (Results 1 – 9 of 9) sorted by relevance

/external/chromium-trace/catapult/third_party/gsutil/gslib/tests/
Dtest_util.py38 self.assertEqual(util.MakeHumanReadable(0), '0 B')
39 self.assertEqual(util.MakeHumanReadable(1023), '1023 B')
40 self.assertEqual(util.MakeHumanReadable(1024), '1 KiB')
41 self.assertEqual(util.MakeHumanReadable(1024 ** 2), '1 MiB')
42 self.assertEqual(util.MakeHumanReadable(1024 ** 3), '1 GiB')
43 self.assertEqual(util.MakeHumanReadable(1024 ** 3 * 5.3), '5.3 GiB')
44 self.assertEqual(util.MakeHumanReadable(1024 ** 4 * 2.7), '2.7 TiB')
45 self.assertEqual(util.MakeHumanReadable(1024 ** 5), '1 PiB')
46 self.assertEqual(util.MakeHumanReadable(1024 ** 6), '1 EiB')
Dtest_cp.py66 from gslib.util import MakeHumanReadable
89 self._halt_at_byte, MakeHumanReadable(total_bytes_transferred),
90 MakeHumanReadable(total_size)))
115 MakeHumanReadable(total_bytes_transferred),
116 MakeHumanReadable(total_size)))
138 MakeHumanReadable(total_bytes_transferred),
139 MakeHumanReadable(total_size)))
192 MakeHumanReadable(total_bytes_transferred),
193 MakeHumanReadable(total_size)))
/external/chromium-trace/catapult/third_party/gsutil/gslib/
Dprogress_callback.py20 from gslib.util import MakeHumanReadable
159 total_size_string = '/%s' % MakeHumanReadable(total_size)
167 MakeHumanReadable(last_byte_processed - self._start_byte),
Dutil.py533 def MakeHumanReadable(num): function
Dcopy_helper.py113 from gslib.util import MakeHumanReadable
2749 MakeHumanReadable(S3_MAX_UPLOAD_SIZE)))
/external/chromium-trace/catapult/third_party/gsutil/gslib/commands/
Dperfdiag.py64 from gslib.util import MakeHumanReadable
575 MakeHumanReadable(self.thru_filesize)))
586 % (MakeHumanReadable(self.thru_filesize * self.num_objects),
587 MakeHumanReadable(free_disk_space)))
700 readable_file_size = MakeHumanReadable(file_size)
887 MakeHumanReadable(self.thru_filesize)))
969 MakeHumanReadable(self.thru_filesize)))
1525 print MakeHumanReadable(numbytes).rjust(9), '',
1529 print MakeHumanReadable(numbytes).rjust(9), '',
1533 print MakeHumanReadable(numbytes).rjust(9), '',
[all …]
Ddu.py30 from gslib.util import MakeHumanReadable
142 size_string = (MakeHumanReadable(num_bytes)
168 size_string = (MakeHumanReadable(obj.size)
Dls.py32 from gslib.util import MakeHumanReadable
325 size_string = (MakeHumanReadable(obj.size)
475 (total_objs, total_bytes, MakeHumanReadable(float(total_bytes))))
Dcp.py41 from gslib.util import MakeHumanReadable
959 MakeHumanReadable(self.total_bytes_per_second))