Skip to content

Commit b16d269

Browse files
MayYouBeProsperousSigureMo
authored andcommitted
time string format in progress bar (PaddlePaddle#75736)
1 parent 3b2a7ac commit b16d269

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python/paddle/hapi/progressbar.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ def convert_uint16_to_float(in_list):
147147
info += f' {v}'
148148

149149
if self._num is not None and current_num < self._num:
150-
eta = time_per_unit * (self._num - current_num)
150+
eta = int(time_per_unit * (self._num - current_num))
151151
if eta > 3600:
152152
eta_format = (
153153
f'{eta // 3600}:{(eta % 3600) // 60:02}:{eta % 60:02}'

0 commit comments

Comments
 (0)